Class DoubleLongHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractLongIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
org.eclipse.collections.impl.map.mutable.primitive.DoubleLongHashMap
- All Implemented Interfaces:
Externalizable,Serializable,LongIterable,DoubleLongMap,LongValuesMap,MutableDoubleLongMap,MutableLongValuesMap,PrimitiveIterable,MutableDoubleKeysMap,DoubleKeysMap
public class DoubleLongHashMap
extends AbstractMutableLongValuesMap
implements MutableDoubleLongMap, Externalizable, MutableDoubleKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaddToValue(double key, long toBeAdded) booleanallSatisfyKeyValue(DoubleLongPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(double key) booleanvoidforEachKey(DoubleProcedure procedure) voidforEachKeyValue(DoubleLongProcedure procedure) longget(double key) longgetAndPut(double key, long putValue, long defaultValue) longgetIfAbsent(double key, long ifAbsent) longgetIfAbsentPut(double key, long value) longgetIfAbsentPut(double key, LongFunction0 function) <P> longgetIfAbsentPutWith(double key, LongFunction<? super P> function, P parameter) longgetIfAbsentPutWithKey(double key, DoubleToLongFunction function) longgetOrThrow(double key) inthashCode()<V> VinjectInto(V injectedValue, ObjectLongToObjectFunction<? super V, ? extends V> function) keySet()keysView()static DoubleLongHashMapnewWithKeysValues(double key1, long value1) static DoubleLongHashMapnewWithKeysValues(double key1, long value1, double key2, long value2) static DoubleLongHashMapnewWithKeysValues(double key1, long value1, double key2, long value2, double key3, long value3) static DoubleLongHashMapnewWithKeysValues(double key1, long value1, double key2, long value2, double key3, long value3, double key4, long value4) voidput(double key, long value) voidputAll(DoubleLongMap map) voidreject(DoubleLongPredicate predicate) voidremove(double key) voidremoveKey(double key) longremoveKeyIfAbsent(double key, long value) select(DoubleLongPredicate predicate) toString()booleanlongupdateValue(double key, long initialValueIfAbsent, LongToLongFunction function) voidupdateValues(DoubleLongToLongFunction function) values()withKeysValues(double key1, long value1, double key2, long value2) withKeysValues(double key1, long value1, double key2, long value2, double key3, long value3) withKeysValues(double key1, long value1, double key2, long value2, double key3, long value3, double key4, long value4) withKeyValue(double key1, long value1) withoutAllKeys(DoubleIterable keys) withoutKey(double key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
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.AbstractLongIterable
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.DoubleLongMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.LongIterable
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.LongValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleLongMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
DoubleLongHashMap
public DoubleLongHashMap() -
DoubleLongHashMap
public DoubleLongHashMap(int initialCapacity) -
DoubleLongHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static DoubleLongHashMap newWithKeysValues(double key1, long value1, double key2, long value2) -
newWithKeysValues
public static DoubleLongHashMap newWithKeysValues(double key1, long value1, double key2, long value2, double key3, long value3) -
newWithKeysValues
public static DoubleLongHashMap newWithKeysValues(double key1, long value1, double key2, long value2, double key3, long value3, double key4, long value4) -
equals
- Specified by:
equalsin interfaceDoubleLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleLongMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceDoubleLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLongIterable
-
longIterator
- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceLongIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableDoubleKeysMap- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(double key, long value) - Specified by:
putin interfaceMutableDoubleLongMap
-
putAll
- Specified by:
putAllin interfaceMutableDoubleLongMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableDoubleLongMap
-
removeKey
public void removeKey(double key) - Specified by:
removeKeyin interfaceMutableDoubleKeysMap- Specified by:
removeKeyin interfaceMutableDoubleLongMap
-
remove
public void remove(double key) - Specified by:
removein interfaceMutableDoubleLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(double key, long value) - Specified by:
removeKeyIfAbsentin interfaceMutableDoubleLongMap
-
getIfAbsentPut
public long getIfAbsentPut(double key, long value) - Specified by:
getIfAbsentPutin interfaceMutableDoubleLongMap
-
getAndPut
public long getAndPut(double key, long putValue, long defaultValue) - Specified by:
getAndPutin interfaceMutableDoubleLongMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableDoubleLongMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleLongMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleLongMap
-
addToValue
public long addToValue(double key, long toBeAdded) - Specified by:
addToValuein interfaceMutableDoubleLongMap
-
updateValue
- Specified by:
updateValuein interfaceMutableDoubleLongMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableDoubleLongMap
-
withKeysValues
-
withKeysValues
public DoubleLongHashMap withKeysValues(double key1, long value1, double key2, long value2, double key3, long value3) -
withKeysValues
public DoubleLongHashMap withKeysValues(double key1, long value1, double key2, long value2, double key3, long value3, double key4, long value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableDoubleLongMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableDoubleLongMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleLongMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleLongMap
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleLongMap
-
get
public long get(double key) - Specified by:
getin interfaceDoubleLongMap
-
getIfAbsent
public long getIfAbsent(double key, long ifAbsent) - Specified by:
getIfAbsentin interfaceDoubleLongMap
-
getOrThrow
public long getOrThrow(double key) - Specified by:
getOrThrowin interfaceDoubleLongMap
-
containsKey
public boolean containsKey(double key) - Specified by:
containsKeyin interfaceDoubleKeysMap- Specified by:
containsKeyin interfaceDoubleLongMap
-
forEachKey
- Specified by:
forEachKeyin interfaceDoubleKeysMap- Specified by:
forEachKeyin interfaceDoubleLongMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceDoubleLongMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceDoubleLongMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceDoubleLongMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceDoubleLongMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceDoubleLongMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleLongMap
-
select
- Specified by:
selectin interfaceDoubleLongMap- Specified by:
selectin interfaceMutableDoubleLongMap
-
reject
- Specified by:
rejectin interfaceDoubleLongMap- Specified by:
rejectin interfaceMutableDoubleLongMap
-
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 interfaceDoubleLongMap
-
values
- Specified by:
valuesin interfaceLongValuesMap
-
trimToSize()instead