Class ShortIntHashMap.KeySet
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortKeySet
-
- org.eclipse.collections.impl.map.mutable.primitive.ShortIntHashMap.KeySet
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,MutableShortCollection
,PrimitiveIterable
,MutableShortSet
,ShortSet
,ShortIterable
- Enclosing class:
- ShortIntHashMap
private class ShortIntHashMap.KeySet extends AbstractMutableShortKeySet
-
-
Constructor Summary
Constructors Modifier Constructor Description private
KeySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShortSet
freeze()
Returns a frozen copy of this set.protected short
getKeyAtIndex(int index)
protected MutableShortKeysMap
getOuter()
protected AbstractMutableIntValuesMap.SentinelValues
getSentinelValues()
protected int
getTableSize()
MutableShortSet
newEmpty()
Creates a new empty mutable version of the same Set type.boolean
retainAll(short... source)
boolean
retainAll(ShortIterable source)
MutableShortIterator
shortIterator()
Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortKeySet
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, asSynchronized, asUnmodifiable, average, cartesianProduct, chunk, clear, collect, contains, containsAll, containsAll, count, detectIfNone, each, equals, hashCode, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, notEmpty, readExternal, reject, remove, removeAll, removeAll, select, size, sum, toArray, toArray, toBag, toImmutable, toList, toSet, toSortedArray, toSortedList, toString, with, withAll, without, withoutAll, writeExternal, writeReplace
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableShortCollection
removeIf
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableShortSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.ShortIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.ShortSet
isProperSubsetOf, isSubsetOf
-
-
-
-
Method Detail
-
getOuter
protected MutableShortKeysMap getOuter()
- Specified by:
getOuter
in classAbstractMutableShortKeySet
-
getSentinelValues
protected AbstractMutableIntValuesMap.SentinelValues getSentinelValues()
- Specified by:
getSentinelValues
in classAbstractMutableShortKeySet
-
getKeyAtIndex
protected short getKeyAtIndex(int index)
- Specified by:
getKeyAtIndex
in classAbstractMutableShortKeySet
-
getTableSize
protected int getTableSize()
- Specified by:
getTableSize
in classAbstractMutableShortKeySet
-
shortIterator
public MutableShortIterator shortIterator()
Description copied from interface:ShortIterable
Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.
-
retainAll
public boolean retainAll(ShortIterable source)
- See Also:
Collection.retainAll(Collection)
-
retainAll
public boolean retainAll(short... source)
- See Also:
Collection.retainAll(Collection)
-
freeze
public ShortSet freeze()
Description copied from interface:MutableShortSet
Returns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.
-
newEmpty
public MutableShortSet newEmpty()
Description copied from interface:MutableShortSet
Creates a new empty mutable version of the same Set type.- Since:
- 9.2.
-
-