Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv abstract Class AbstractLongCollection

extends Object
implements LongCollection
Class Inheritance
All Implemented Interfaces
com.carrotsearch.hppc.LongCollection, com.carrotsearch.hppc.LongContainer, java.lang.Iterable
Known Direct Subclasses
com.carrotsearch.hppc.IntLongHashMap.ValuesContainer, com.carrotsearch.hppc.ShortLongHashMap.ValuesContainer, com.carrotsearch.hppc.CharLongHashMap.ValuesContainer, com.carrotsearch.hppc.LongArrayDeque, com.carrotsearch.hppc.LongIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongByteHashMap.KeysContainer, com.carrotsearch.hppc.ObjectLongHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationLongCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongFloatHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongLongHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongLongHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationLongObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongShortHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectLongHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationShortLongHashMap.ValuesContainer, com.carrotsearch.hppc.LongLongHashMap.KeysContainer, com.carrotsearch.hppc.LongLongHashMap.ValuesContainer, com.carrotsearch.hppc.LongObjectHashMap.KeysContainer, com.carrotsearch.hppc.LongShortHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharLongHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationIntLongHashMap.ValuesContainer, com.carrotsearch.hppc.LongArrayList, com.carrotsearch.hppc.LongByteHashMap.KeysContainer, com.carrotsearch.hppc.LongCharHashMap.KeysContainer, com.carrotsearch.hppc.LongDoubleHashMap.KeysContainer, com.carrotsearch.hppc.LongFloatHashMap.KeysContainer, com.carrotsearch.hppc.LongHashSet
Annotations
@Generated:AbstractKTypeCollection.java
date:2024-06-04T15:20:17+0200
Imports
com.carrotsearch.hppc.cursors.LongCursor, com.carrotsearch.hppc.predicates.LongPredicate, 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 LongLookupContainer c)

Implements com.carrotsearch.hppc.LongCollection.removeAll.

Default implementation uses a predicate for removal.

public int
retainAll(final LongLookupContainer c)

Implements com.carrotsearch.hppc.LongCollection.retainAll.

Default implementation uses a predicate for retaining.

public int
retainAll(final LongPredicate predicate)

Implements com.carrotsearch.hppc.LongCollection.retainAll.

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

public long[]
toArray()

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

AbstractLongCollectionback to summary
pack-priv AbstractLongCollection()

Method Detail

removeAllback to summary
public int removeAll(final LongLookupContainer c)

Implements com.carrotsearch.hppc.LongCollection.removeAll.

Default implementation uses a predicate for removal.

Returns:int

Doc from com.carrotsearch.hppc.LongCollection.removeAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.LongCollection.retainAll.

Default implementation uses a predicate for retaining.

Returns:int

Doc from com.carrotsearch.hppc.LongCollection.retainAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.LongCollection.retainAll.

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

Returns:int

Doc from com.carrotsearch.hppc.LongCollection.retainAll.

Returns the number of removed elements.

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

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