Class ShortDoubleHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractDoubleIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ShortDoubleHashMap
- All Implemented Interfaces:
Externalizable,Serializable,DoubleIterable,DoubleValuesMap,MutableDoubleValuesMap,MutableShortDoubleMap,ShortDoubleMap,PrimitiveIterable,MutableShortKeysMap,ShortKeysMap
public class ShortDoubleHashMap
extends AbstractMutableDoubleValuesMap
implements MutableShortDoubleMap, Externalizable, MutableShortKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleaddToValue(short key, double toBeAdded) booleanallSatisfyKeyValue(ShortDoublePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(short key) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortDoubleProcedure procedure) doubleget(short key) doublegetAndPut(short key, double putValue, double defaultValue) doublegetIfAbsent(short key, double ifAbsent) doublegetIfAbsentPut(short key, double value) doublegetIfAbsentPut(short key, DoubleFunction0 function) <P> doublegetIfAbsentPutWith(short key, DoubleFunction<? super P> function, P parameter) doublegetIfAbsentPutWithKey(short key, ShortToDoubleFunction function) doublegetOrThrow(short key) inthashCode()<V> VinjectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ShortDoubleHashMapnewWithKeysValues(short key1, double value1) static ShortDoubleHashMapnewWithKeysValues(short key1, double value1, short key2, double value2) static ShortDoubleHashMapnewWithKeysValues(short key1, double value1, short key2, double value2, short key3, double value3) static ShortDoubleHashMapnewWithKeysValues(short key1, double value1, short key2, double value2, short key3, double value3, short key4, double value4) voidput(short key, double value) voidputAll(ShortDoubleMap map) voidreject(ShortDoublePredicate predicate) voidremove(short key) voidremoveKey(short key) doubleremoveKeyIfAbsent(short key, double value) select(ShortDoublePredicate predicate) toString()booleandoubleupdateValue(short key, double initialValueIfAbsent, DoubleToDoubleFunction function) voidupdateValues(ShortDoubleToDoubleFunction function) values()withKeysValues(short key1, double value1, short key2, double value2) withKeysValues(short key1, double value1, short key2, double value2, short key3, double value3) withKeysValues(short key1, double value1, short key2, double value2, short key3, double value3, short key4, double value4) withKeyValue(short key1, double value1) withoutAllKeys(ShortIterable keys) withoutKey(short key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
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.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.DoubleIterable
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.DoubleValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortDoubleMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.ShortKeysMap
isEmpty, notEmpty, size
-
Constructor Details
-
ShortDoubleHashMap
public ShortDoubleHashMap() -
ShortDoubleHashMap
public ShortDoubleHashMap(int initialCapacity) -
ShortDoubleHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static ShortDoubleHashMap newWithKeysValues(short key1, double value1, short key2, double value2) -
newWithKeysValues
public static ShortDoubleHashMap newWithKeysValues(short key1, double value1, short key2, double value2, short key3, double value3) -
newWithKeysValues
public static ShortDoubleHashMap newWithKeysValues(short key1, double value1, short key2, double value2, short key3, double value3, short key4, double value4) -
equals
- Specified by:
equalsin interfaceShortDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortDoubleMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortDoubleMap- Overrides:
toStringin classAbstractDoubleIterable
-
doubleIterator
- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceDoubleIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableDoubleValuesMap- Specified by:
clearin interfaceMutableShortKeysMap
-
put
public void put(short key, double value) - Specified by:
putin interfaceMutableShortDoubleMap
-
putAll
- Specified by:
putAllin interfaceMutableShortDoubleMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableShortDoubleMap
-
removeKey
public void removeKey(short key) - Specified by:
removeKeyin interfaceMutableShortDoubleMap- Specified by:
removeKeyin interfaceMutableShortKeysMap
-
remove
public void remove(short key) - Specified by:
removein interfaceMutableShortDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(short key, double value) - Specified by:
removeKeyIfAbsentin interfaceMutableShortDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(short key, double value) - Specified by:
getIfAbsentPutin interfaceMutableShortDoubleMap
-
getAndPut
public double getAndPut(short key, double putValue, double defaultValue) - Specified by:
getAndPutin interfaceMutableShortDoubleMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableShortDoubleMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableShortDoubleMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortDoubleMap
-
addToValue
public double addToValue(short key, double toBeAdded) - Specified by:
addToValuein interfaceMutableShortDoubleMap
-
updateValue
- Specified by:
updateValuein interfaceMutableShortDoubleMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortDoubleMap
-
withKeysValues
-
withKeysValues
public ShortDoubleHashMap withKeysValues(short key1, double value1, short key2, double value2, short key3, double value3) -
withKeysValues
public ShortDoubleHashMap withKeysValues(short key1, double value1, short key2, double value2, short key3, double value3, short key4, double value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortDoubleMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortDoubleMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortDoubleMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortDoubleMap
-
toImmutable
- Specified by:
toImmutablein interfaceShortDoubleMap
-
get
public double get(short key) - Specified by:
getin interfaceShortDoubleMap
-
getIfAbsent
public double getIfAbsent(short key, double ifAbsent) - Specified by:
getIfAbsentin interfaceShortDoubleMap
-
getOrThrow
public double getOrThrow(short key) - Specified by:
getOrThrowin interfaceShortDoubleMap
-
containsKey
public boolean containsKey(short key) - Specified by:
containsKeyin interfaceShortDoubleMap- Specified by:
containsKeyin interfaceShortKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortDoubleMap- Specified by:
forEachKeyin interfaceShortKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortDoubleMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceShortDoubleMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceShortDoubleMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortDoubleMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableShortDoubleMap- Specified by:
flipUniqueValuesin interfaceShortDoubleMap
-
select
- Specified by:
selectin interfaceMutableShortDoubleMap- Specified by:
selectin interfaceShortDoubleMap
-
reject
- Specified by:
rejectin interfaceMutableShortDoubleMap- Specified by:
rejectin interfaceShortDoubleMap
-
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 interfaceShortDoubleMap
-
values
- Specified by:
valuesin interfaceDoubleValuesMap
-
trimToSize()instead