Package com.carrotsearch.hppc
Class AbstractLongCollection
java.lang.Object
com.carrotsearch.hppc.AbstractLongCollection
- All Implemented Interfaces:
LongCollection
,LongContainer
,Iterable<LongCursor>
- Direct Known Subclasses:
ByteLongHashMap.ValuesContainer
,CharLongHashMap.ValuesContainer
,DoubleLongHashMap.ValuesContainer
,FloatLongHashMap.ValuesContainer
,IntLongHashMap.ValuesContainer
,LongArrayDeque
,LongArrayList
,LongByteHashMap.KeysContainer
,LongCharHashMap.KeysContainer
,LongDoubleHashMap.KeysContainer
,LongFloatHashMap.KeysContainer
,LongHashSet
,LongIntHashMap.KeysContainer
,LongLongHashMap.KeysContainer
,LongLongHashMap.ValuesContainer
,LongObjectHashMap.KeysContainer
,LongShortHashMap.KeysContainer
,ObjectLongHashMap.ValuesContainer
,ShortLongHashMap.ValuesContainer
@Generated(date="2023-10-26T04:33:10+0000",
value="AbstractKTypeCollection.java")
abstract class AbstractLongCollection
extends Object
implements LongCollection
Common superclass for collections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Default implementation uses a predicate for removal.int
Default implementation uses a predicate for retaining.int
retainAll
(LongPredicate predicate) Default implementation redirects toLongCollection.removeAll(LongPredicate)
and negates the predicate.long[]
toArray()
Default implementation of copying to an array.toString()
Convert the contents of this container to a human-friendly string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.carrotsearch.hppc.LongCollection
clear, release, removeAll, removeAll
-
Constructor Details
-
AbstractLongCollection
AbstractLongCollection()
-
-
Method Details
-
removeAll
Default implementation uses a predicate for removal.- Specified by:
removeAll
in interfaceLongCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation uses a predicate for retaining.- Specified by:
retainAll
in interfaceLongCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation redirects toLongCollection.removeAll(LongPredicate)
and negates the predicate.- Specified by:
retainAll
in interfaceLongCollection
- Returns:
- Returns the number of removed elements.
-
toArray
public long[] toArray()Default implementation of copying to an array.- Specified by:
toArray
in interfaceLongContainer
-
toString
Convert the contents of this container to a human-friendly string.
-