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