Class ShortShortHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractShortIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ShortShortHashMap
- All Implemented Interfaces:
Externalizable,Serializable,MutableShortShortMap,MutableShortValuesMap,ShortShortMap,ShortValuesMap,PrimitiveIterable,ShortIterable,MutableShortKeysMap,ShortKeysMap
public class ShortShortHashMap
extends AbstractMutableShortValuesMap
implements MutableShortShortMap, Externalizable, MutableShortKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortaddToValue(short key, short toBeAdded) booleanallSatisfyKeyValue(ShortShortPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(short key) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortShortProcedure procedure) shortget(short key) shortgetAndPut(short key, short putValue, short defaultValue) shortgetIfAbsent(short key, short ifAbsent) shortgetIfAbsentPut(short key, short value) shortgetIfAbsentPut(short key, ShortFunction0 function) <P> shortgetIfAbsentPutWith(short key, ShortFunction<? super P> function, P parameter) shortgetIfAbsentPutWithKey(short key, ShortToShortFunction function) shortgetOrThrow(short key) inthashCode()<V> VinjectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ShortShortHashMapnewWithKeysValues(short key1, short value1) static ShortShortHashMapnewWithKeysValues(short key1, short value1, short key2, short value2) static ShortShortHashMapnewWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3) static ShortShortHashMapnewWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4) voidput(short key, short value) voidputAll(ShortShortMap map) voidreject(ShortShortPredicate predicate) voidremove(short key) voidremoveKey(short key) shortremoveKeyIfAbsent(short key, short value) select(ShortShortPredicate predicate) toString()booleanshortupdateValue(short key, short initialValueIfAbsent, ShortToShortFunction function) voidupdateValues(ShortShortToShortFunction function) values()withKeysValues(short key1, short value1, short key2, short value2) withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3) withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4) withKeyValue(short key1, short value1) withoutAllKeys(ShortIterable keys) withoutKey(short 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.api.map.primitive.MutableShortShortMap
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.impl.map.primitive.ShortKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortShortMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortValuesMap
containsValue, forEachValue, tap
-
Constructor Details
-
ShortShortHashMap
public ShortShortHashMap() -
ShortShortHashMap
public ShortShortHashMap(int initialCapacity) -
ShortShortHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2) -
newWithKeysValues
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3) -
newWithKeysValues
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4) -
equals
- Specified by:
equalsin interfaceShortShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortShortMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortShortMap- 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 interfaceMutableShortKeysMap- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(short key, short value) - Specified by:
putin interfaceMutableShortShortMap
-
putAll
- Specified by:
putAllin interfaceMutableShortShortMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableShortShortMap
-
removeKey
public void removeKey(short key) - Specified by:
removeKeyin interfaceMutableShortKeysMap- Specified by:
removeKeyin interfaceMutableShortShortMap
-
remove
public void remove(short key) - Specified by:
removein interfaceMutableShortShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(short key, short value) - Specified by:
removeKeyIfAbsentin interfaceMutableShortShortMap
-
getIfAbsentPut
public short getIfAbsentPut(short key, short value) - Specified by:
getIfAbsentPutin interfaceMutableShortShortMap
-
getAndPut
public short getAndPut(short key, short putValue, short defaultValue) - Specified by:
getAndPutin interfaceMutableShortShortMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableShortShortMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableShortShortMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortShortMap
-
addToValue
public short addToValue(short key, short toBeAdded) - Specified by:
addToValuein interfaceMutableShortShortMap
-
updateValue
- Specified by:
updateValuein interfaceMutableShortShortMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortShortMap
-
withKeysValues
-
withKeysValues
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3) -
withKeysValues
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortShortMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortShortMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortShortMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortShortMap
-
toImmutable
- Specified by:
toImmutablein interfaceShortShortMap
-
get
public short get(short key) - Specified by:
getin interfaceShortShortMap
-
getIfAbsent
public short getIfAbsent(short key, short ifAbsent) - Specified by:
getIfAbsentin interfaceShortShortMap
-
getOrThrow
public short getOrThrow(short key) - Specified by:
getOrThrowin interfaceShortShortMap
-
containsKey
public boolean containsKey(short key) - Specified by:
containsKeyin interfaceShortKeysMap- Specified by:
containsKeyin interfaceShortShortMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortKeysMap- Specified by:
forEachKeyin interfaceShortShortMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortShortMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceShortShortMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceShortShortMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortShortMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableShortShortMap- Specified by:
flipUniqueValuesin interfaceShortShortMap
-
select
- Specified by:
selectin interfaceMutableShortShortMap- Specified by:
selectin interfaceShortShortMap
-
reject
- Specified by:
rejectin interfaceMutableShortShortMap- Specified by:
rejectin interfaceShortShortMap
-
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 interfaceShortShortMap
-
values
- Specified by:
valuesin interfaceShortValuesMap
-
trimToSize()instead