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