Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv abstract Class AbstractCharCollection

extends Object
implements CharCollection
Class Inheritance
All Implemented Interfaces
com.carrotsearch.hppc.CharCollection, com.carrotsearch.hppc.CharContainer, java.lang.Iterable
Known Direct Subclasses
com.carrotsearch.hppc.ShortCharHashMap.ValuesContainer, com.carrotsearch.hppc.CharIntHashMap.KeysContainer, com.carrotsearch.hppc.CharLongHashMap.KeysContainer, com.carrotsearch.hppc.CharObjectHashMap.KeysContainer, com.carrotsearch.hppc.CharShortHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongCharHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationObjectCharHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationShortCharHashMap.ValuesContainer, com.carrotsearch.hppc.ObjectCharHashMap.ValuesContainer, com.carrotsearch.hppc.IntCharHashMap.ValuesContainer, com.carrotsearch.hppc.CharArrayDeque, com.carrotsearch.hppc.CharArrayList, com.carrotsearch.hppc.CharByteHashMap.KeysContainer, com.carrotsearch.hppc.CharCharHashMap.KeysContainer, com.carrotsearch.hppc.CharCharHashMap.ValuesContainer, com.carrotsearch.hppc.CharDoubleHashMap.KeysContainer, com.carrotsearch.hppc.CharFloatHashMap.KeysContainer, com.carrotsearch.hppc.CharHashSet, com.carrotsearch.hppc.SortedIterationCharByteHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharCharHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationCharDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharFloatHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharLongHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharShortHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationIntCharHashMap.ValuesContainer, com.carrotsearch.hppc.LongCharHashMap.ValuesContainer
Annotations
@Generated:AbstractKTypeCollection.java
date:2024-06-04T15:20:17+0200
Imports
com.carrotsearch.hppc.cursors.CharCursor, com.carrotsearch.hppc.predicates.CharPredicate, java.util.Arrays

Common superclass for collections.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
removeAll(final CharLookupContainer c)

Implements com.carrotsearch.hppc.CharCollection.removeAll.

Default implementation uses a predicate for removal.

public int
retainAll(final CharLookupContainer c)

Implements com.carrotsearch.hppc.CharCollection.retainAll.

Default implementation uses a predicate for retaining.

public int
retainAll(final CharPredicate predicate)

Implements com.carrotsearch.hppc.CharCollection.retainAll.

Default implementation redirects to removeAll(CharPredicate) and negates the predicate.

public char[]
toArray()

Implements com.carrotsearch.hppc.CharContainer.toArray.

Default implementation of copying to an array.

public String
toString()

Overrides java.lang.Object.toString.

Convert the contents of this container to a human-friendly string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

AbstractCharCollectionback to summary
pack-priv AbstractCharCollection()

Method Detail

removeAllback to summary
public int removeAll(final CharLookupContainer c)

Implements com.carrotsearch.hppc.CharCollection.removeAll.

Default implementation uses a predicate for removal.

Returns:int

Doc from com.carrotsearch.hppc.CharCollection.removeAll.

Returns the number of removed elements.

Annotations
@Override
retainAllback to summary
public int retainAll(final CharLookupContainer c)

Implements com.carrotsearch.hppc.CharCollection.retainAll.

Default implementation uses a predicate for retaining.

Returns:int

Doc from com.carrotsearch.hppc.CharCollection.retainAll.

Returns the number of removed elements.

Annotations
@Override
retainAllback to summary
public int retainAll(final CharPredicate predicate)

Implements com.carrotsearch.hppc.CharCollection.retainAll.

Default implementation redirects to removeAll(CharPredicate) and negates the predicate.

Returns:int

Doc from com.carrotsearch.hppc.CharCollection.retainAll.

Returns the number of removed elements.

Annotations
@Override
toArrayback to summary
public char[] toArray()

Implements com.carrotsearch.hppc.CharContainer.toArray.

Default implementation of copying to an array.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Convert the contents of this container to a human-friendly string.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override