org.apache.james.mime4j.field.address
Class MailboxList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Mailbox>
org.apache.james.mime4j.field.address.MailboxList
- All Implemented Interfaces:
- Serializable, Iterable<Mailbox>, Collection<Mailbox>, List<Mailbox>
public class MailboxList
- extends AbstractList<Mailbox>
- implements Serializable
An immutable, random-access list of Mailbox objects.
- See Also:
- Serialized Form
Method Summary |
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. |
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
MailboxList
public MailboxList(List<Mailbox> mailboxes,
boolean dontCopy)
- Parameters:
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.
size
public int size()
- The number of elements in this list.
- Specified by:
size
in interface Collection<Mailbox>
- Specified by:
size
in interface List<Mailbox>
- Specified by:
size
in class AbstractCollection<Mailbox>
get
public Mailbox get(int index)
- Gets an address.
- Specified by:
get
in interface List<Mailbox>
- Specified by:
get
in class AbstractList<Mailbox>
print
public void print()
- Dumps a representation of this mailbox list to stdout, for debugging
purposes.
Copyright © 2004-2012 JBoss by Red Hat. All Rights Reserved.