@Generated(date="2017-07-11T19:16:21+0200",
value="AbstractKTypeCollection.java")
public abstract class AbstractShortCollection
extends java.lang.Object
implements ShortCollection
| Modifier and Type | Field and Description |
|---|---|
protected ShortPredicate |
containsNegateTestPredicate |
protected ShortPredicate |
containsTestPredicate |
protected ShortPredicate |
negatePredicate |
protected ShortLookupContainer |
testContainer |
protected ShortPredicate |
testPredicate |
| Constructor and Description |
|---|
AbstractShortCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
True if there is no elements in the container,
equivalent to
size() == 0 |
int |
removeAll(ShortLookupContainer c)
Default implementation uses a predicate for removal.
|
int |
retainAll(ShortLookupContainer c)
Keeps all elements in this collection that are present
in
c. |
int |
retainAll(ShortPredicate predicate)
Keeps all elements in this collection for which the
given predicate returns
true. |
short[] |
toArray()
Copies all elements from this container to an array.
|
short[] |
toArray(short[] target)
Default implementation for:
Copies all elements of this container to an existing array of the same type.
|
java.lang.String |
toString()
Convert the contents of this container to a human-friendly string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, removeAll, removeAllprotected ShortLookupContainer testContainer
protected ShortPredicate testPredicate
protected ShortPredicate containsTestPredicate
protected ShortPredicate containsNegateTestPredicate
protected ShortPredicate negatePredicate
public int removeAll(ShortLookupContainer c)
removeAll in interface ShortCollectionpublic int retainAll(ShortLookupContainer c)
c. Runs in time proportional to the number
of elements in this collection. Equivalent of sets intersection.retainAll in interface ShortCollectionpublic int retainAll(ShortPredicate predicate)
true.retainAll in interface ShortCollectionpublic short[] toArray(short[] target)
toArray in interface ShortContainertarget - The target array must be large enough to hold all elements, i.e >= ShortContainer.size().public short[] toArray()
The returned array is sized to match exactly the number of elements of the container.
If you need an array of the type identical with this container's generic type, use#toArray(Class).toArray in interface ShortContainer#toArray(Class)public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEmpty()
ShortContainersize() == 0isEmpty in interface ShortContainerCopyright © 2017. All rights reserved.