Class IntShortHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractShortIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
org.eclipse.collections.impl.map.mutable.primitive.IntShortHashMap
- All Implemented Interfaces:
Externalizable,Serializable,IntShortMap,MutableIntShortMap,MutableShortValuesMap,ShortValuesMap,PrimitiveIterable,ShortIterable,MutableIntKeysMap,IntKeysMap
public class IntShortHashMap
extends AbstractMutableShortValuesMap
implements MutableIntShortMap, Externalizable, MutableIntKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortaddToValue(int key, short toBeAdded) booleanallSatisfyKeyValue(IntShortPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(int key) booleanvoidforEachKey(IntProcedure procedure) voidforEachKeyValue(IntShortProcedure procedure) shortget(int key) shortgetAndPut(int key, short putValue, short defaultValue) shortgetIfAbsent(int key, short ifAbsent) shortgetIfAbsentPut(int key, short value) shortgetIfAbsentPut(int key, ShortFunction0 function) <P> shortgetIfAbsentPutWith(int key, ShortFunction<? super P> function, P parameter) shortgetIfAbsentPutWithKey(int key, IntToShortFunction function) shortgetOrThrow(int key) inthashCode()<V> VinjectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) keySet()keysView()static IntShortHashMapnewWithKeysValues(int key1, short value1) static IntShortHashMapnewWithKeysValues(int key1, short value1, int key2, short value2) static IntShortHashMapnewWithKeysValues(int key1, short value1, int key2, short value2, int key3, short value3) static IntShortHashMapnewWithKeysValues(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4) voidput(int key, short value) voidputAll(IntShortMap map) voidreject(IntShortPredicate predicate) voidremove(int key) voidremoveKey(int key) shortremoveKeyIfAbsent(int key, short value) select(IntShortPredicate predicate) toString()booleanshortupdateValue(int key, short initialValueIfAbsent, ShortToShortFunction function) voidupdateValues(IntShortToShortFunction function) values()withKeysValues(int key1, short value1, int key2, short value2) withKeysValues(int key1, short value1, int key2, short value2, int key3, short value3) withKeysValues(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4) withKeyValue(int key1, short value1) withoutAllKeys(IntIterable keys) withoutKey(int key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractShortIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.impl.map.primitive.IntKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.IntShortMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntShortMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.ShortIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortValuesMap
containsValue, forEachValue, tap
-
Constructor Details
-
IntShortHashMap
public IntShortHashMap() -
IntShortHashMap
public IntShortHashMap(int initialCapacity) -
IntShortHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static IntShortHashMap newWithKeysValues(int key1, short value1, int key2, short value2, int key3, short value3) -
newWithKeysValues
public static IntShortHashMap newWithKeysValues(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4) -
equals
- Specified by:
equalsin interfaceIntShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceIntShortMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceIntShortMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractShortIterable
-
shortIterator
- Specified by:
shortIteratorin interfaceMutableShortValuesMap- Specified by:
shortIteratorin interfaceShortIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceShortIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableIntKeysMap- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(int key, short value) - Specified by:
putin interfaceMutableIntShortMap
-
putAll
- Specified by:
putAllin interfaceMutableIntShortMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableIntShortMap
-
removeKey
public void removeKey(int key) - Specified by:
removeKeyin interfaceMutableIntKeysMap- Specified by:
removeKeyin interfaceMutableIntShortMap
-
remove
public void remove(int key) - Specified by:
removein interfaceMutableIntShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(int key, short value) - Specified by:
removeKeyIfAbsentin interfaceMutableIntShortMap
-
getIfAbsentPut
public short getIfAbsentPut(int key, short value) - Specified by:
getIfAbsentPutin interfaceMutableIntShortMap
-
getAndPut
public short getAndPut(int key, short putValue, short defaultValue) - Specified by:
getAndPutin interfaceMutableIntShortMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableIntShortMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableIntShortMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntShortMap
-
addToValue
public short addToValue(int key, short toBeAdded) - Specified by:
addToValuein interfaceMutableIntShortMap
-
updateValue
- Specified by:
updateValuein interfaceMutableIntShortMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableIntShortMap
-
withKeysValues
-
withKeysValues
public IntShortHashMap withKeysValues(int key1, short value1, int key2, short value2, int key3, short value3) -
withKeysValues
public IntShortHashMap withKeysValues(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableIntShortMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableIntShortMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntShortMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntShortMap
-
toImmutable
- Specified by:
toImmutablein interfaceIntShortMap
-
get
public short get(int key) - Specified by:
getin interfaceIntShortMap
-
getIfAbsent
public short getIfAbsent(int key, short ifAbsent) - Specified by:
getIfAbsentin interfaceIntShortMap
-
getOrThrow
public short getOrThrow(int key) - Specified by:
getOrThrowin interfaceIntShortMap
-
containsKey
public boolean containsKey(int key) - Specified by:
containsKeyin interfaceIntKeysMap- Specified by:
containsKeyin interfaceIntShortMap
-
forEachKey
- Specified by:
forEachKeyin interfaceIntKeysMap- Specified by:
forEachKeyin interfaceIntShortMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceIntShortMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceIntShortMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceIntShortMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceIntShortMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceIntShortMap- Specified by:
flipUniqueValuesin interfaceMutableIntShortMap
-
select
- Specified by:
selectin interfaceIntShortMap- Specified by:
selectin interfaceMutableIntShortMap
-
reject
- Specified by:
rejectin interfaceIntShortMap- Specified by:
rejectin interfaceMutableIntShortMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. -
keySet
- Specified by:
keySetin interfaceIntShortMap
-
values
- Specified by:
valuesin interfaceShortValuesMap
-
trimToSize()instead