public class MailboxList extends AbstractList<Mailbox> implements Serializable
modCount
Constructor and Description |
---|
MailboxList(List<Mailbox> mailboxes) |
MailboxList(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, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public MailboxList(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(List<Mailbox> mailboxes)
mailboxes
- A List that contains only Mailbox objects.public MailboxList(Mailbox... mailboxes)
mailboxes
- A List that contains only Mailbox objects.public int size()
size
in interface Collection<Mailbox>
size
in interface List<Mailbox>
size
in class AbstractCollection<Mailbox>
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.