Package com.carrotsearch.hppc
Class AbstractCharCollection
- java.lang.Object
-
- com.carrotsearch.hppc.AbstractCharCollection
-
- All Implemented Interfaces:
CharCollection
,CharContainer
,java.lang.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-16T12:00:00+0000", value="AbstractKTypeCollection.java") abstract class AbstractCharCollection extends java.lang.Object implements CharCollection
Common superclass for collections.
-
-
Constructor Summary
Constructors Constructor Description AbstractCharCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
removeAll(CharLookupContainer c)
Default implementation uses a predicate for removal.int
retainAll(CharLookupContainer c)
Default implementation uses a predicate for retaining.int
retainAll(CharPredicate predicate)
Default implementation redirects toCharCollection.removeAll(CharPredicate)
and negates the predicate.char[]
toArray()
Default implementation of copying to an array.java.lang.String
toString()
Convert the contents of this container to a human-friendly string.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.carrotsearch.hppc.CharCollection
clear, release, removeAll, removeAll
-
-
-
-
Method Detail
-
removeAll
public int removeAll(CharLookupContainer c)
Default implementation uses a predicate for removal.- Specified by:
removeAll
in interfaceCharCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(CharLookupContainer c)
Default implementation uses a predicate for retaining.- Specified by:
retainAll
in interfaceCharCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(CharPredicate predicate)
Default implementation redirects toCharCollection.removeAll(CharPredicate)
and negates the predicate.- Specified by:
retainAll
in interfaceCharCollection
- Returns:
- Returns the number of removed elements.
-
toArray
public char[] toArray()
Default implementation of copying to an array.- Specified by:
toArray
in interfaceCharContainer
-
toString
public java.lang.String toString()
Convert the contents of this container to a human-friendly string.- Overrides:
toString
in classjava.lang.Object
-
-