public class AddressList extends java.util.AbstractList<Address> implements java.io.Serializable
Constructor and Description |
---|
AddressList(java.util.List<? extends Address> addresses,
boolean dontCopy) |
Modifier and Type | Method and Description |
---|---|
MailboxList |
flatten()
Returns a flat list of all mailboxes represented in this address list.
|
Address |
get(int index)
Gets an address.
|
int |
size()
The number of elements in this list.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public AddressList(java.util.List<? extends Address> addresses, boolean dontCopy)
addresses
- A List that contains only Address objects.dontCopy
- true iff it is not possible for the addresses list to be
modified by someone else.public int size()
public Address get(int index)
public MailboxList flatten()