public class AddressList
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AddressList()
Default constructor.
|
AddressList(java.lang.String aValue)
Parses the specified string representation to create a list of addresses.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.net.URI address)
Add an address to the list.
|
boolean |
isEmpty() |
java.util.Iterator<java.net.URI> |
iterator() |
boolean |
remove(java.net.URI address)
Remove an address from the list.
|
int |
size() |
java.lang.String |
toString() |
public AddressList()
public AddressList(java.lang.String aValue) throws java.net.URISyntaxException
aValue
- a string representation of a list of addressesjava.net.URISyntaxException
- where the specified string is not a valid representationpublic final java.lang.String toString()
toString
in class java.lang.Object
public final boolean add(java.net.URI address)
address
- the address to addList.add(java.lang.Object)
public final boolean isEmpty()
List.isEmpty()
public final java.util.Iterator<java.net.URI> iterator()
List.iterator()
public final boolean remove(java.net.URI address)
address
- the address to removeList.remove(java.lang.Object)
public final int size()
List.size()