public class AddressList extends Object implements Serializable, Iterable<URI>
Constructor and Description |
---|
AddressList()
Default constructor.
|
AddressList(String aValue)
Parses the specified string representation to create a list of addresses.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(URI address)
Add an address to the list.
|
List<URI> |
getAddresses() |
boolean |
isEmpty() |
Iterator<URI> |
iterator() |
boolean |
remove(URI address)
Remove an address from the list.
|
int |
size() |
String |
toString() |
static String |
toString(List<URI> addresses) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public AddressList()
public AddressList(String aValue) throws URISyntaxException
aValue
- a string representation of a list of addressesURISyntaxException
- where the specified string is not a valid representationpublic final boolean add(URI address)
address
- the address to addList.add(java.lang.Object)
public final boolean isEmpty()
List.isEmpty()
public final Iterator<URI> iterator()
iterator
in interface Iterable<URI>
List.iterator()
public final boolean remove(URI address)
address
- the address to removeList.remove(java.lang.Object)
public final int size()
List.size()