public class AddressList extends AbstractList<Address> implements Serializable
modCount| Constructor and Description |
|---|
AddressList(Address... addresses) |
AddressList(List<? extends Address> addresses) |
AddressList(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, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic AddressList(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 AddressList(List<? extends Address> addresses)
addresses - A List that contains only Address objects.public AddressList(Address... addresses)
addresses - A List that contains only Address objects.public int size()
size in interface Collection<Address>size in interface List<Address>size in class AbstractCollection<Address>public Address get(int index)
public MailboxList flatten()
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.