public class MailboxList extends java.util.AbstractList<Mailbox> implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Mailbox> |
mailboxes |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
MailboxList(java.util.List<Mailbox> mailboxes) |
MailboxList(java.util.List<Mailbox> mailboxes,
boolean dontCopy) |
MailboxList(Mailbox... mailboxes) |
| Modifier and Type | Method and Description |
|---|---|
Mailbox |
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, waitprivate static final long serialVersionUID
private final java.util.List<Mailbox> mailboxes
public MailboxList(java.util.List<Mailbox> mailboxes, boolean dontCopy)
mailboxes - A List that contains only Mailbox objects.dontCopy - true iff it is not possible for the mailboxes list to be
modified by someone else.public MailboxList(java.util.List<Mailbox> mailboxes)
mailboxes - A List that contains only Mailbox objects.public MailboxList(Mailbox... mailboxes)
mailboxes - A List that contains only Mailbox objects.