public static class CharCollections.SynchronizedCollection extends java.lang.Object implements CharCollection
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(CharCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Character> c) |
void |
clear() |
boolean |
contains(char o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(CharCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(CharCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
isEmpty() |
CharIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remChar(char o)
A Type-Specific remove function that reduces (un)boxing.
|
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 removeAll function that reduces (un)boxing.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(CharCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
char[] |
toCharArray()
A Type-Specific toArray function that delegates to
CharCollection.toCharArray(char[]) with a newly created array. |
char[] |
toCharArray(char[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, contains, parallelPrimitiveStream, primitiveStream, removeIf, spliteratorforEach, forEachpublic boolean add(char o)
CharCollectionadd in interface CharCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Character> c)
addAll in interface java.util.Collection<java.lang.Character>public boolean addAll(CharCollection c)
CharCollectionaddAll in interface CharCollectionc - the collection of elements that should be addedpublic boolean contains(char o)
CharCollectioncontains in interface CharCollectiono - the element that is checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Character>@Deprecated public boolean containsAny(java.util.Collection<?> c)
CharCollectioncontainsAny in interface CharCollectionc - the collection of elements that should be tested forpublic boolean containsAll(CharCollection c)
CharCollectioncontainsAll in interface CharCollectionc - the collection of elements that should be tested forpublic boolean containsAny(CharCollection c)
CharCollectioncontainsAny in interface CharCollectionc - the collection of elements that should be tested forpublic int size()
size in interface java.util.Collection<java.lang.Character>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Character>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 CharIterableCollection.iterator()@Deprecated public boolean remove(java.lang.Object o)
CharCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Character>remove in interface CharCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Character>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Character>public boolean remChar(char o)
CharCollectionremChar in interface CharCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(CharCollection c)
CharCollectionremoveAll in interface CharCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean retainAll(CharCollection c)
CharCollectionretainAll in interface CharCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.IntPredicate filter)
CharCollectionRemoves elements that were selected by the filter
remIf in interface CharCollectionfilter - Filters the elements that should be removedCollection.removeIf(Predicate)public void clear()
clear in interface java.util.Collection<java.lang.Character>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Character>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Character>public char[] toCharArray()
CharCollectionCharCollection.toCharArray(char[]) with a newly created array.toCharArray in interface CharCollectionCollection.toArray()public char[] toCharArray(char[] a)
CharCollectiontoCharArray in interface CharCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])