Package com.carrotsearch.hppc
Class AbstractIntCollection
- java.lang.Object
-
- com.carrotsearch.hppc.AbstractIntCollection
-
- All Implemented Interfaces:
IntCollection,IntContainer,java.lang.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-16T12:00:00+0000", value="AbstractKTypeCollection.java") abstract class AbstractIntCollection extends java.lang.Object implements IntCollectionCommon superclass for collections.
-
-
Constructor Summary
Constructors Constructor Description AbstractIntCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intremoveAll(IntLookupContainer c)Default implementation uses a predicate for removal.intretainAll(IntLookupContainer c)Default implementation uses a predicate for retaining.intretainAll(IntPredicate predicate)Default implementation redirects toIntCollection.removeAll(IntPredicate)and negates the predicate.int[]toArray()Default implementation of copying to an array.java.lang.StringtoString()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
-
-
-
-
Method Detail
-
removeAll
public int removeAll(IntLookupContainer c)
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceIntCollection- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(IntLookupContainer c)
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceIntCollection- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(IntPredicate predicate)
Default implementation redirects toIntCollection.removeAll(IntPredicate)and negates the predicate.- Specified by:
retainAllin interfaceIntCollection- Returns:
- Returns the number of removed elements.
-
toArray
public int[] toArray()
Default implementation of copying to an array.- Specified by:
toArrayin interfaceIntContainer
-
toString
public java.lang.String toString()
Convert the contents of this container to a human-friendly string.- Overrides:
toStringin classjava.lang.Object
-
-