Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv abstract Class AbstractShortCollection

extends Object
implements ShortCollection
Class Inheritance
All Implemented Interfaces
com.carrotsearch.hppc.ShortCollection, com.carrotsearch.hppc.ShortContainer, java.lang.Iterable
Known Direct Subclasses
com.carrotsearch.hppc.IntShortHashMap.ValuesContainer, com.carrotsearch.hppc.ShortCharHashMap.KeysContainer, com.carrotsearch.hppc.ShortDoubleHashMap.KeysContainer, com.carrotsearch.hppc.ShortFloatHashMap.KeysContainer, com.carrotsearch.hppc.ShortHashSet, com.carrotsearch.hppc.ShortIntHashMap.KeysContainer, com.carrotsearch.hppc.ShortLongHashMap.KeysContainer, com.carrotsearch.hppc.ShortObjectHashMap.KeysContainer, com.carrotsearch.hppc.CharShortHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationLongShortHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationObjectShortHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationShortByteHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortFloatHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortLongHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortShortHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortShortHashMap.ValuesContainer, com.carrotsearch.hppc.LongShortHashMap.ValuesContainer, com.carrotsearch.hppc.ShortShortHashMap.KeysContainer, com.carrotsearch.hppc.ShortShortHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationCharShortHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationIntShortHashMap.ValuesContainer, com.carrotsearch.hppc.ObjectShortHashMap.ValuesContainer, com.carrotsearch.hppc.ShortArrayDeque, com.carrotsearch.hppc.ShortArrayList, com.carrotsearch.hppc.ShortByteHashMap.KeysContainer
Annotations
@Generated:AbstractKTypeCollection.java
date:2024-06-04T15:20:17+0200
Imports
com.carrotsearch.hppc.cursors.ShortCursor, com.carrotsearch.hppc.predicates.ShortPredicate, 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 ShortLookupContainer c)

Implements com.carrotsearch.hppc.ShortCollection.removeAll.

Default implementation uses a predicate for removal.

public int
retainAll(final ShortLookupContainer c)

Implements com.carrotsearch.hppc.ShortCollection.retainAll.

Default implementation uses a predicate for retaining.

public int
retainAll(final ShortPredicate predicate)

Implements com.carrotsearch.hppc.ShortCollection.retainAll.

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

public short[]
toArray()

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

AbstractShortCollectionback to summary
pack-priv AbstractShortCollection()

Method Detail

removeAllback to summary
public int removeAll(final ShortLookupContainer c)

Implements com.carrotsearch.hppc.ShortCollection.removeAll.

Default implementation uses a predicate for removal.

Returns:int

Doc from com.carrotsearch.hppc.ShortCollection.removeAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.ShortCollection.retainAll.

Default implementation uses a predicate for retaining.

Returns:int

Doc from com.carrotsearch.hppc.ShortCollection.retainAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.ShortCollection.retainAll.

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

Returns:int

Doc from com.carrotsearch.hppc.ShortCollection.retainAll.

Returns the number of removed elements.

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

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