Class AbstractObjectCollection<KType>
java.lang.Object
com.carrotsearch.hppc.AbstractObjectCollection<KType>
- All Implemented Interfaces:
ObjectCollection<KType>, ObjectContainer<KType>, Iterable<ObjectCursor<KType>>
- Direct Known Subclasses:
ByteObjectHashMap.ValuesContainer, CharObjectHashMap.ValuesContainer, DoubleObjectHashMap.ValuesContainer, FloatObjectHashMap.ValuesContainer, IntObjectHashMap.ValuesContainer, LongObjectHashMap.ValuesContainer, ObjectArrayDeque, ObjectArrayList, ObjectByteHashMap.KeysContainer, ObjectCharHashMap.KeysContainer, ObjectDoubleHashMap.KeysContainer, ObjectFloatHashMap.KeysContainer, ObjectHashSet, ObjectIntHashMap.KeysContainer, ObjectLongHashMap.KeysContainer, ObjectObjectHashMap.KeysContainer, ObjectObjectHashMap.ValuesContainer, ObjectShortHashMap.KeysContainer, ShortObjectHashMap.ValuesContainer
@Generated(date="2024-05-16T08:18:11+0000",
value="AbstractKTypeCollection.java")
abstract class AbstractObjectCollection<KType>
extends Object
implements ObjectCollection<KType>
Common superclass for collections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanintremoveAll(ObjectLookupContainer<? super KType> c) Default implementation uses a predicate for removal.intretainAll(ObjectLookupContainer<? super KType> c) Default implementation uses a predicate for retaining.intretainAll(ObjectPredicate<? super KType> predicate) Default implementation redirects toObjectCollection.removeAll(ObjectPredicate)and negates the predicate.Object[]toArray()Default implementation of copying to an array.<T> T[]Copies all elements of this container to a dynamically created array of the given component type.toString()Convert the contents of this container to a human-friendly string.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface ObjectCollection
clear, release, removeAll, removeAll
-
Constructor Details
-
AbstractObjectCollection
AbstractObjectCollection()
-
-
Method Details
-
removeAll
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceObjectCollection<KType>- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceObjectCollection<KType>- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation redirects toObjectCollection.removeAll(ObjectPredicate)and negates the predicate.- Specified by:
retainAllin interfaceObjectCollection<KType>- Returns:
- Returns the number of removed elements.
-
toArray
Default implementation of copying to an array.- Specified by:
toArrayin interfaceObjectContainer<KType>
-
toArray
Description copied from interface:ObjectContainerCopies all elements of this container to a dynamically created array of the given component type.- Specified by:
toArrayin interfaceObjectContainer<KType>
-
toString
-
equals
-