| Modifier and Type | Field and Description |
|---|---|
| private final Collection | addSet
Set that keeps tabs on add add() to collection. |
| private final Collection | removeSet
Set that keeps tabs of all remove() to collection. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | add(final E
element whose presence in this collection is to be ensured obj)Overrides java. Implements java. |
| private Iterator | |
| public final boolean | contains(final Object
element whose presence in this collection is to be tested obj)Overrides java. Implements java. true if this collection contains the specified element.
|
| public final Iterator | iterator()
Implements abstract java. Implements java. |
| public final boolean | remove(final Object
element to be removed from this collection, if present obj)Overrides java. Implements java. |
| public final boolean | removeAll(final Collection<?>
collection containing elements to be removed from this collection removeCandidates)Overrides java. Implements java. |
| public final int | size()
Implements abstract java. Implements java. |
| public abstract Iterator | |
| public abstract int |
| addSet | back to summary |
|---|---|
| private final Collection<E> addSet Set that keeps tabs on add add() to collection. | |
| removeSet | back to summary |
|---|---|
| private final Collection<Object> removeSet Set that keeps tabs of all remove() to collection. | |
| LargeCollection | back to summary |
|---|---|
| public LargeCollection() default constructor. | |
| add | back to summary |
|---|---|
| public final boolean add(final E obj) Overrides java. Implements java. Doc from java. Ensures that this collection contains the specified element (optional
operation). Returns
Collections that support this operation may place limitations on what
elements may be added to this collection. In particular, some
collections will refuse to add
If a collection refuses to add a particular element for any reason
other than that it already contains the element, it must throw
an exception (rather than returning
| |
| additionalIterator | back to summary |
|---|---|
| private Iterator Iterator for addSet.
| |
| contains | back to summary |
|---|---|
| public final boolean contains(final Object obj) Overrides java. Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public final Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements contained in this collection.
| |
| remove | back to summary |
|---|---|
| public final boolean remove(final Object obj) Overrides java. Implements java. Doc from java. Removes a single instance of the specified element from this
collection, if it is present (optional operation). More formally,
removes an element
| |
| removeAll | back to summary |
|---|---|
| public final boolean removeAll(final Collection<?> removeCandidates) Overrides java. Implements java. Doc from java. Removes all of this collection's elements that are also contained in the specified collection (optional operation). After this call returns, this collection will contain no elements in common with the specified collection.
| |
| size | back to summary |
|---|---|
| public final int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |
| sourceIterator | back to summary |
|---|---|
| public abstract Iterator Iterator of initial set of entries.
| |
| sourceSize | back to summary |
|---|---|
| public abstract int sourceSize() Initial set of entries size.
| |