Package com.carrotsearch.hppc
Class AbstractIntCollection
java.lang.Object
com.carrotsearch.hppc.AbstractIntCollection
- All Implemented Interfaces:
IntCollection
,IntContainer
,Iterable<IntCursor>
- Direct Known Subclasses:
ByteIntHashMap.ValuesContainer
,CharIntHashMap.ValuesContainer
,DoubleIntHashMap.ValuesContainer
,FloatIntHashMap.ValuesContainer
,IntArrayDeque
,IntArrayList
,IntByteHashMap.KeysContainer
,IntCharHashMap.KeysContainer
,IntDoubleHashMap.KeysContainer
,IntFloatHashMap.KeysContainer
,IntHashSet
,IntIntHashMap.KeysContainer
,IntIntHashMap.ValuesContainer
,IntLongHashMap.KeysContainer
,IntObjectHashMap.KeysContainer
,IntShortHashMap.KeysContainer
,LongIntHashMap.ValuesContainer
,ObjectIntHashMap.ValuesContainer
,ShortIntHashMap.ValuesContainer
@Generated(date="2024-05-16T08:18:11+0000",
value="AbstractKTypeCollection.java")
abstract class AbstractIntCollection
extends Object
implements IntCollection
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
(IntPredicate predicate) Default implementation redirects toIntCollection.removeAll(IntPredicate)
and negates the predicate.int[]
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 com.carrotsearch.hppc.IntCollection
clear, release, removeAll, removeAll
Methods inherited from interface com.carrotsearch.hppc.IntContainer
contains, forEach, isEmpty, iterator, size
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractIntCollection
AbstractIntCollection()
-
-
Method Details
-
removeAll
Default implementation uses a predicate for removal.- Specified by:
removeAll
in interfaceIntCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation uses a predicate for retaining.- Specified by:
retainAll
in interfaceIntCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation redirects toIntCollection.removeAll(IntPredicate)
and negates the predicate.- Specified by:
retainAll
in interfaceIntCollection
- Returns:
- Returns the number of removed elements.
-
toArray
public int[] toArray()Default implementation of copying to an array.- Specified by:
toArray
in interfaceIntContainer
-
toString
Convert the contents of this container to a human-friendly string.
-