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