Class AbstractCharCollection
java.lang.Object
com.carrotsearch.hppc.AbstractCharCollection
- All Implemented Interfaces:
CharCollection, CharContainer, Iterable<CharCursor>
- Direct Known Subclasses:
ByteCharHashMap.ValuesContainer, CharArrayDeque, CharArrayList, CharByteHashMap.KeysContainer, CharCharHashMap.KeysContainer, CharCharHashMap.ValuesContainer, CharDoubleHashMap.KeysContainer, CharFloatHashMap.KeysContainer, CharHashSet, CharIntHashMap.KeysContainer, CharLongHashMap.KeysContainer, CharObjectHashMap.KeysContainer, CharShortHashMap.KeysContainer, DoubleCharHashMap.ValuesContainer, FloatCharHashMap.ValuesContainer, IntCharHashMap.ValuesContainer, LongCharHashMap.ValuesContainer, ObjectCharHashMap.ValuesContainer, ShortCharHashMap.ValuesContainer
@Generated(date="2024-05-16T08:18:11+0000",
value="AbstractKTypeCollection.java")
abstract class AbstractCharCollection
extends Object
implements CharCollection
Common superclass for collections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDefault implementation uses a predicate for removal.intDefault implementation uses a predicate for retaining.intretainAll(CharPredicate predicate) Default implementation redirects toCharCollection.removeAll(CharPredicate)and negates the predicate.char[]toArray()Default implementation of copying to an array.toString()Convert the contents of this container to a human-friendly string.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CharCollection
clear, release, removeAll, removeAllMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
AbstractCharCollection
AbstractCharCollection()
-
-
Method Details
-
removeAll
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceCharCollection- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceCharCollection- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation redirects toCharCollection.removeAll(CharPredicate)and negates the predicate.- Specified by:
retainAllin interfaceCharCollection- Returns:
- Returns the number of removed elements.
-
toArray
public char[] toArray()Default implementation of copying to an array.- Specified by:
toArrayin interfaceCharContainer
-
toString
-