public class AddressList extends AbstractList<Address> implements Serializable
modCount
Constructor and Description |
---|
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, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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 int size()
size
in interface Collection<Address>
size
in interface List<Address>
size
in class AbstractCollection<Address>
public MailboxList flatten()
Copyright © 2004-2019 The Apache Software Foundation. All Rights Reserved.