Class MailboxList
- All Implemented Interfaces:
Serializable, Iterable<Mailbox>, Collection<Mailbox>, List<Mailbox>
An immutable, random-access list of Mailbox objects.
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionMailboxList(List<Mailbox> mailboxes) MailboxList(List<Mailbox> mailboxes, boolean dontCopy) MailboxList(Mailbox... mailboxes) -
Method Summary
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
MailboxList
-
MailboxList
-
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
-