Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv abstract Class AbstractObjectCollection<KType>

extends Object
implements ObjectCollection<KType>
Class Inheritance
All Implemented Interfaces
com.carrotsearch.hppc.ObjectCollection, com.carrotsearch.hppc.ObjectContainer, java.lang.Iterable
Known Direct Subclasses
com.carrotsearch.hppc.IntObjectHashMap.ValuesContainer, com.carrotsearch.hppc.ShortObjectHashMap.ValuesContainer, com.carrotsearch.hppc.CharObjectHashMap.ValuesContainer, com.carrotsearch.hppc.ObjectDoubleHashMap.KeysContainer, com.carrotsearch.hppc.ObjectFloatHashMap.KeysContainer, com.carrotsearch.hppc.ObjectHashSet, com.carrotsearch.hppc.ObjectIntHashMap.KeysContainer, com.carrotsearch.hppc.ObjectLongHashMap.KeysContainer, com.carrotsearch.hppc.ObjectObjectHashMap.KeysContainer, com.carrotsearch.hppc.ObjectObjectHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationLongObjectHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationObjectByteHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectFloatHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectLongHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectObjectHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationObjectShortHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortObjectHashMap.ValuesContainer, com.carrotsearch.hppc.LongObjectHashMap.ValuesContainer, com.carrotsearch.hppc.ObjectArrayDeque, com.carrotsearch.hppc.ObjectArrayList, com.carrotsearch.hppc.ObjectByteHashMap.KeysContainer, com.carrotsearch.hppc.ObjectCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationCharObjectHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationIntObjectHashMap.ValuesContainer, com.carrotsearch.hppc.ObjectShortHashMap.KeysContainer
Annotations
@SuppressWarnings:unchecked
@Generated:AbstractKTypeCollection.java
date:2024-06-04T15:20:17+0200
Imports
com.carrotsearch.hppc.cursors.ObjectCursor, com.carrotsearch.hppc.predicates.ObjectPredicate, java.util.Arrays

Common superclass for collections.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected boolean
public int
removeAll(final ObjectLookupContainer<? super KType> c)

Implements com.carrotsearch.hppc.ObjectCollection.removeAll, com.carrotsearch.hppc.ObjectCollection.removeAll.

Default implementation uses a predicate for removal.

public int
retainAll(final ObjectLookupContainer<? super KType> c)

Implements com.carrotsearch.hppc.ObjectCollection.retainAll.

Default implementation uses a predicate for retaining.

public int
retainAll(final ObjectPredicate<? super KType> predicate)

Implements com.carrotsearch.hppc.ObjectCollection.retainAll.

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

public Object[]
toArray()

Implements com.carrotsearch.hppc.ObjectContainer.toArray.

Default implementation of copying to an array.

public <T> T[]
toArray(Class<T> componentClass)

Implements com.carrotsearch.hppc.ObjectContainer.toArray.

Copies all elements of this container to a dynamically created array of the given component type.

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

AbstractObjectCollectionback to summary
pack-priv AbstractObjectCollection()

Method Detail

equalsback to summary
protected boolean equals(Object v1, Object v2)
removeAllback to summary
public int removeAll(final ObjectLookupContainer<? super KType> c)

Implements com.carrotsearch.hppc.ObjectCollection.removeAll, com.carrotsearch.hppc.ObjectCollection.removeAll.

Default implementation uses a predicate for removal.

Returns:int

Doc from com.carrotsearch.hppc.ObjectCollection.removeAll.

Returns the number of removed elements.

Annotations
@Override
retainAllback to summary
public int retainAll(final ObjectLookupContainer<? super KType> c)

Implements com.carrotsearch.hppc.ObjectCollection.retainAll.

Default implementation uses a predicate for retaining.

Returns:int

Doc from com.carrotsearch.hppc.ObjectCollection.retainAll.

Returns the number of removed elements.

Annotations
@Override
retainAllback to summary
public int retainAll(final ObjectPredicate<? super KType> predicate)

Implements com.carrotsearch.hppc.ObjectCollection.retainAll.

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

Returns:int

Doc from com.carrotsearch.hppc.ObjectCollection.retainAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.ObjectContainer.toArray.

Default implementation of copying to an array.

Annotations
@Override
toArrayback to summary
public <T> T[] toArray(Class<T> componentClass)

Implements com.carrotsearch.hppc.ObjectContainer.toArray.

Doc from com.carrotsearch.hppc.ObjectContainer.toArray.

Copies all elements of this container to a dynamically created array of the given component type.

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