Package com.carrotsearch.hppc
Class AbstractShortCollection
- java.lang.Object
-
- com.carrotsearch.hppc.AbstractShortCollection
-
- All Implemented Interfaces:
ShortCollection,ShortContainer,java.lang.Iterable<ShortCursor>
- Direct Known Subclasses:
ByteShortHashMap.ValuesContainer,CharShortHashMap.ValuesContainer,DoubleShortHashMap.ValuesContainer,FloatShortHashMap.ValuesContainer,IntShortHashMap.ValuesContainer,LongShortHashMap.ValuesContainer,ObjectShortHashMap.ValuesContainer,ShortArrayDeque,ShortArrayList,ShortByteHashMap.KeysContainer,ShortCharHashMap.KeysContainer,ShortDoubleHashMap.KeysContainer,ShortFloatHashMap.KeysContainer,ShortHashSet,ShortIntHashMap.KeysContainer,ShortLongHashMap.KeysContainer,ShortObjectHashMap.KeysContainer,ShortShortHashMap.KeysContainer,ShortShortHashMap.ValuesContainer
@Generated(date="2024-05-16T12:00:00+0000", value="AbstractKTypeCollection.java") abstract class AbstractShortCollection extends java.lang.Object implements ShortCollectionCommon superclass for collections.
-
-
Constructor Summary
Constructors Constructor Description AbstractShortCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intremoveAll(ShortLookupContainer c)Default implementation uses a predicate for removal.intretainAll(ShortPredicate predicate)Default implementation redirects toShortCollection.removeAll(ShortPredicate)and negates the predicate.intretainAll(ShortLookupContainer c)Default implementation uses a predicate for retaining.short[]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.ShortCollection
clear, release, removeAll, removeAll
-
-
-
-
Method Detail
-
removeAll
public int removeAll(ShortLookupContainer c)
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceShortCollection- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(ShortLookupContainer c)
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceShortCollection- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(ShortPredicate predicate)
Default implementation redirects toShortCollection.removeAll(ShortPredicate)and negates the predicate.- Specified by:
retainAllin interfaceShortCollection- Returns:
- Returns the number of removed elements.
-
toArray
public short[] toArray()
Default implementation of copying to an array.- Specified by:
toArrayin interfaceShortContainer
-
toString
public java.lang.String toString()
Convert the contents of this container to a human-friendly string.- Overrides:
toStringin classjava.lang.Object
-
-