Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv abstract Class AbstractIntCollection

extends Object
implements IntCollection
Class Inheritance
All Implemented Interfaces
com.carrotsearch.hppc.IntCollection, com.carrotsearch.hppc.IntContainer, java.lang.Iterable
Known Direct Subclasses
com.carrotsearch.hppc.IntFloatHashMap.KeysContainer, com.carrotsearch.hppc.IntHashSet, com.carrotsearch.hppc.IntIntHashMap.KeysContainer, com.carrotsearch.hppc.IntIntHashMap.ValuesContainer, com.carrotsearch.hppc.IntLongHashMap.KeysContainer, com.carrotsearch.hppc.IntObjectHashMap.KeysContainer, com.carrotsearch.hppc.IntShortHashMap.KeysContainer, com.carrotsearch.hppc.ShortIntHashMap.ValuesContainer, com.carrotsearch.hppc.CharIntHashMap.ValuesContainer, com.carrotsearch.hppc.LongIntHashMap.ValuesContainer, com.carrotsearch.hppc.ObjectIntHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationLongIntHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationObjectIntHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationShortIntHashMap.ValuesContainer, com.carrotsearch.hppc.IntArrayDeque, com.carrotsearch.hppc.IntArrayList, com.carrotsearch.hppc.IntByteHashMap.KeysContainer, com.carrotsearch.hppc.IntCharHashMap.KeysContainer, com.carrotsearch.hppc.IntDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharIntHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationIntByteHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationIntCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationIntDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationIntFloatHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationIntIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationIntIntHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationIntLongHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationIntObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationIntShortHashMap.KeysContainer
Annotations
@Generated:AbstractKTypeCollection.java
date:2024-06-04T15:20:17+0200
Imports
com.carrotsearch.hppc.cursors.IntCursor, com.carrotsearch.hppc.predicates.IntPredicate, 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 IntLookupContainer c)

Implements com.carrotsearch.hppc.IntCollection.removeAll.

Default implementation uses a predicate for removal.

public int
retainAll(final IntLookupContainer c)

Implements com.carrotsearch.hppc.IntCollection.retainAll.

Default implementation uses a predicate for retaining.

public int
retainAll(final IntPredicate predicate)

Implements com.carrotsearch.hppc.IntCollection.retainAll.

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

public int[]
toArray()

Implements com.carrotsearch.hppc.IntContainer.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

AbstractIntCollectionback to summary
pack-priv AbstractIntCollection()

Method Detail

removeAllback to summary
public int removeAll(final IntLookupContainer c)

Implements com.carrotsearch.hppc.IntCollection.removeAll.

Default implementation uses a predicate for removal.

Returns:int

Doc from com.carrotsearch.hppc.IntCollection.removeAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.IntCollection.retainAll.

Default implementation uses a predicate for retaining.

Returns:int

Doc from com.carrotsearch.hppc.IntCollection.retainAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.IntCollection.retainAll.

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

Returns:int

Doc from com.carrotsearch.hppc.IntCollection.retainAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.IntContainer.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