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