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