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