@Generated(date="2017-07-11T19:16:21+0200",
value="AbstractKTypeCollection.java")
public abstract class AbstractFloatCollection
extends java.lang.Object
implements FloatCollection
| Modifier and Type | Field and Description |
|---|---|
protected FloatPredicate |
containsNegateTestPredicate |
protected FloatPredicate |
containsTestPredicate |
protected FloatPredicate |
negatePredicate |
protected FloatLookupContainer |
testContainer |
protected FloatPredicate |
testPredicate |
| Constructor and Description |
|---|
AbstractFloatCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
True if there is no elements in the container,
equivalent to
size() == 0 |
int |
removeAll(FloatLookupContainer c)
Default implementation uses a predicate for removal.
|
int |
retainAll(FloatLookupContainer c)
Keeps all elements in this collection that are present
in
c. |
int |
retainAll(FloatPredicate predicate)
Keeps all elements in this collection for which the
given predicate returns
true. |
float[] |
toArray()
Copies all elements from this container to an array.
|
float[] |
toArray(float[] 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 FloatLookupContainer testContainer
protected FloatPredicate testPredicate
protected FloatPredicate containsTestPredicate
protected FloatPredicate containsNegateTestPredicate
protected FloatPredicate negatePredicate
public int removeAll(FloatLookupContainer c)
removeAll in interface FloatCollectionpublic int retainAll(FloatLookupContainer c)
c. Runs in time proportional to the number
of elements in this collection. Equivalent of sets intersection.retainAll in interface FloatCollectionpublic int retainAll(FloatPredicate predicate)
true.retainAll in interface FloatCollectionpublic float[] toArray(float[] target)
toArray in interface FloatContainertarget - The target array must be large enough to hold all elements, i.e >= FloatContainer.size().public float[] 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 FloatContainer#toArray(Class)public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEmpty()
FloatContainersize() == 0isEmpty in interface FloatContainerCopyright © 2017. All rights reserved.