public class MailboxList extends java.util.AbstractList<Mailbox> implements java.io.Serializable
Constructor and Description |
---|
MailboxList(java.util.List<Mailbox> mailboxes,
boolean dontCopy) |
Modifier and Type | Method and Description |
---|---|
Mailbox |
get(int index)
Gets an address.
|
void |
print()
Dumps a representation of this mailbox list to stdout, for debugging
purposes.
|
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 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 int size()
public Mailbox get(int index)
public void print()
Copyright © 2004-2012. All Rights Reserved.