Class DoubleIntHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractIntIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableIntValuesMap
org.eclipse.collections.impl.map.mutable.primitive.DoubleIntHashMap
- All Implemented Interfaces:
Externalizable,Serializable,IntIterable,DoubleIntMap,IntValuesMap,MutableDoubleIntMap,MutableIntValuesMap,PrimitiveIterable,MutableDoubleKeysMap,DoubleKeysMap
public class DoubleIntHashMap
extends AbstractMutableIntValuesMap
implements MutableDoubleIntMap, Externalizable, MutableDoubleKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddToValue(double key, int toBeAdded) booleanallSatisfyKeyValue(DoubleIntPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(double key) booleanvoidforEachKey(DoubleProcedure procedure) voidforEachKeyValue(DoubleIntProcedure procedure) intget(double key) intgetAndPut(double key, int putValue, int defaultValue) intgetIfAbsent(double key, int ifAbsent) intgetIfAbsentPut(double key, int value) intgetIfAbsentPut(double key, IntFunction0 function) <P> intgetIfAbsentPutWith(double key, IntFunction<? super P> function, P parameter) intgetIfAbsentPutWithKey(double key, DoubleToIntFunction function) intgetOrThrow(double key) inthashCode()<V> VinjectInto(V injectedValue, ObjectIntToObjectFunction<? super V, ? extends V> function) keySet()keysView()static DoubleIntHashMapnewWithKeysValues(double key1, int value1) static DoubleIntHashMapnewWithKeysValues(double key1, int value1, double key2, int value2) static DoubleIntHashMapnewWithKeysValues(double key1, int value1, double key2, int value2, double key3, int value3) static DoubleIntHashMapnewWithKeysValues(double key1, int value1, double key2, int value2, double key3, int value3, double key4, int value4) voidput(double key, int value) voidputAll(DoubleIntMap map) voidreject(DoubleIntPredicate predicate) voidremove(double key) voidremoveKey(double key) intremoveKeyIfAbsent(double key, int value) select(DoubleIntPredicate predicate) toString()booleanintupdateValue(double key, int initialValueIfAbsent, IntToIntFunction function) voidupdateValues(DoubleIntToIntFunction function) values()withKeysValues(double key1, int value1, double key2, int value2) withKeysValues(double key1, int value1, double key2, int value2, double key3, int value3) withKeysValues(double key1, int value1, double key2, int value2, double key3, int value3, double key4, int value4) withKeyValue(double key1, int value1) withoutAllKeys(DoubleIterable keys) withoutKey(double key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableIntValuesMap
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.AbstractIntIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.DoubleIntMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.IntIterable
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.IntValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
DoubleIntHashMap
public DoubleIntHashMap() -
DoubleIntHashMap
public DoubleIntHashMap(int initialCapacity) -
DoubleIntHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static DoubleIntHashMap newWithKeysValues(double key1, int value1, double key2, int value2, double key3, int value3) -
newWithKeysValues
public static DoubleIntHashMap newWithKeysValues(double key1, int value1, double key2, int value2, double key3, int value3, double key4, int value4) -
equals
- Specified by:
equalsin interfaceDoubleIntMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleIntMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceDoubleIntMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractIntIterable
-
intIterator
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableIntValuesMap
-
injectInto
- Specified by:
injectIntoin interfaceIntIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableDoubleKeysMap- Specified by:
clearin interfaceMutableIntValuesMap
-
put
public void put(double key, int value) - Specified by:
putin interfaceMutableDoubleIntMap
-
putAll
- Specified by:
putAllin interfaceMutableDoubleIntMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableDoubleIntMap
-
removeKey
public void removeKey(double key) - Specified by:
removeKeyin interfaceMutableDoubleIntMap- Specified by:
removeKeyin interfaceMutableDoubleKeysMap
-
remove
public void remove(double key) - Specified by:
removein interfaceMutableDoubleIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(double key, int value) - Specified by:
removeKeyIfAbsentin interfaceMutableDoubleIntMap
-
getIfAbsentPut
public int getIfAbsentPut(double key, int value) - Specified by:
getIfAbsentPutin interfaceMutableDoubleIntMap
-
getAndPut
public int getAndPut(double key, int putValue, int defaultValue) - Specified by:
getAndPutin interfaceMutableDoubleIntMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableDoubleIntMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleIntMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleIntMap
-
addToValue
public int addToValue(double key, int toBeAdded) - Specified by:
addToValuein interfaceMutableDoubleIntMap
-
updateValue
- Specified by:
updateValuein interfaceMutableDoubleIntMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableDoubleIntMap
-
withKeysValues
-
withKeysValues
public DoubleIntHashMap withKeysValues(double key1, int value1, double key2, int value2, double key3, int value3) -
withKeysValues
public DoubleIntHashMap withKeysValues(double key1, int value1, double key2, int value2, double key3, int value3, double key4, int value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableDoubleIntMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableDoubleIntMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleIntMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleIntMap
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleIntMap
-
get
public int get(double key) - Specified by:
getin interfaceDoubleIntMap
-
getIfAbsent
public int getIfAbsent(double key, int ifAbsent) - Specified by:
getIfAbsentin interfaceDoubleIntMap
-
getOrThrow
public int getOrThrow(double key) - Specified by:
getOrThrowin interfaceDoubleIntMap
-
containsKey
public boolean containsKey(double key) - Specified by:
containsKeyin interfaceDoubleIntMap- Specified by:
containsKeyin interfaceDoubleKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceDoubleIntMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceDoubleIntMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceDoubleIntMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceDoubleIntMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceDoubleIntMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceDoubleIntMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleIntMap
-
select
- Specified by:
selectin interfaceDoubleIntMap- Specified by:
selectin interfaceMutableDoubleIntMap
-
reject
- Specified by:
rejectin interfaceDoubleIntMap- Specified by:
rejectin interfaceMutableDoubleIntMap
-
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 interfaceDoubleIntMap
-
values
- Specified by:
valuesin interfaceIntValuesMap
-
trimToSize()instead