Class MailboxList
- All Implemented Interfaces:
Serializable,Iterable<Mailbox>,Collection<Mailbox>,List<Mailbox>
An immutable, random-access list of Mailbox objects.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionMailboxList(List<Mailbox> mailboxes) MailboxList(List<Mailbox> mailboxes, boolean dontCopy) MailboxList(Mailbox... mailboxes) -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
mailboxes
-
-
Constructor Details
-
MailboxList
- 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.
-
MailboxList
- Parameters:
mailboxes- A List that contains only Mailbox objects.
-
MailboxList
- Parameters:
mailboxes- A List that contains only Mailbox objects.
-
-
Method Details
-
size
public int size()The number of elements in this list.- Specified by:
sizein interfaceCollection<Mailbox>- Specified by:
sizein interfaceList<Mailbox>- Specified by:
sizein classAbstractCollection<Mailbox>
-
get
Gets an address.
-