public static class CharCollections.EmptyCollection extends AbstractCharCollection
| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(char[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
boolean |
addAll(CharCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(char o)
A Type-Specific implementation of contains.
|
boolean |
containsAll(CharCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(CharCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
CharCollections.EmptyCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
CharIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remChar(char o)
A Type-Specific implementation of remove.
|
boolean |
remIf(java.util.function.IntPredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(CharCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Character> filter)
Deprecated.
|
boolean |
retainAll(CharCollection c)
A Type-Specific implementation of retainAll.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
char[] |
toCharArray()
A Type-Specific implementation of toArray that links to
AbstractCharCollection.toCharArray(char[]) with a newly created array. |
char[] |
toCharArray(char[] a)
A Type-Specific implementation of toArray.
|
add, addAll, contains, removeAll, retainAlladdAll, addAll, parallelPrimitiveStream, pour, primitiveStream, spliterator, synchronize, synchronize, unmodifiablearrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic boolean add(char o)
CharCollectiono - the element that should be addedpublic boolean addAll(CharCollection c)
CharCollectionaddAll in interface CharCollectionaddAll in class AbstractCharCollectionc - the collection of elements that should be addedpublic boolean addAll(char[] e,
int offset,
int length)
CharCollectione - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedpublic boolean contains(char o)
AbstractCharCollectioncontains in interface CharCollectioncontains in class AbstractCharCollectiono - the element that should be searched for.public boolean containsAll(CharCollection c)
AbstractCharCollectioncontainsAll in interface CharCollectioncontainsAll in class AbstractCharCollectionc - the collection that should be checked if it contains all elements.public boolean containsAny(CharCollection c)
AbstractCharCollectioncontainsAny in interface CharCollectioncontainsAny in class AbstractCharCollectionc - the elements that should be checked for@Deprecated public boolean containsAny(java.util.Collection<?> c)
AbstractCharCollectioncontainsAny in interface CharCollectioncontainsAny in class AbstractCharCollectionc - the elements that should be checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Character>containsAll in class AbstractCharCollectionpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Character>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Character>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
AbstractCharCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Character>remove in interface CharCollectionremove in class AbstractCharCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Character>removeAll in class java.util.AbstractCollection<java.lang.Character>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Character>retainAll in class java.util.AbstractCollection<java.lang.Character>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Character> filter)
CharCollectionThis default implementation delegates to the corresponding type-specific function.
public boolean remChar(char o)
AbstractCharCollectionremChar in interface CharCollectionremChar in class AbstractCharCollectiono - the element that is searched forCollection.remove(Object)public boolean removeAll(CharCollection c)
AbstractCharCollectionremoveAll in interface CharCollectionremoveAll in class AbstractCharCollectionc - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(CharCollection c)
AbstractCharCollectionretainAll in interface CharCollectionretainAll in class AbstractCharCollectionc - the elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.IntPredicate filter)
CharCollectionRemoves elements that were selected by the filter
filter - Filters the elements that should be removedCollection.removeIf(Predicate)public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Character>toArray in class java.util.AbstractCollection<java.lang.Character>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Character>toArray in class java.util.AbstractCollection<java.lang.Character>public char[] toCharArray()
AbstractCharCollectionAbstractCharCollection.toCharArray(char[]) with a newly created array.toCharArray in interface CharCollectiontoCharArray in class AbstractCharCollectionCollection.toArray()public char[] toCharArray(char[] a)
AbstractCharCollectiontoCharArray in interface CharCollectiontoCharArray in class AbstractCharCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])public CharIterator iterator()
CharCollectioniterator in interface java.lang.Iterable<java.lang.Character>iterator in interface java.util.Collection<java.lang.Character>iterator in interface CharCollectioniterator in interface CharIterableiterator in class AbstractCharCollectionCollection.iterator()public void clear()
clear in interface java.util.Collection<java.lang.Character>clear in class java.util.AbstractCollection<java.lang.Character>public int size()
size in interface java.util.Collection<java.lang.Character>size in class java.util.AbstractCollection<java.lang.Character>public CharCollections.EmptyCollection copy()
CharCollectioncopy in interface CharCollectioncopy in class AbstractCharCollection