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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleLongHashMap()DoubleLongHashMap(int initialCapacity)DoubleLongHashMap(DoubleLongMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longaddToValue(double key, long toBeAdded)MutableDoubleLongMapasSynchronized()MutableDoubleLongMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(double key)booleanequals(Object obj)MutableLongDoubleMapflipUniqueValues()voidforEachKey(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)MutableDoubleSetkeySet()LazyDoubleIterablekeysView()RichIterable<DoubleLongPair>keyValuesView()MutableLongIteratorlongIterator()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)voidreadExternal(ObjectInput in)DoubleLongHashMapreject(DoubleLongPredicate predicate)voidremove(double key)voidremoveKey(double key)longremoveKeyIfAbsent(double key, long value)DoubleLongHashMapselect(DoubleLongPredicate predicate)ImmutableDoubleLongMaptoImmutable()StringtoString()booleantrimToSize()longupdateValue(double key, long initialValueIfAbsent, LongToLongFunction function)voidupdateValues(DoubleLongToLongFunction function)MutableLongCollectionvalues()DoubleLongHashMapwithKeysValues(double key1, long value1, double key2, long value2)DoubleLongHashMapwithKeysValues(double key1, long value1, double key2, long value2, double key3, long value3)DoubleLongHashMapwithKeysValues(double key1, long value1, double key2, long value2, double key3, long value3, double key4, long value4)DoubleLongHashMapwithKeyValue(double key1, long value1)DoubleLongHashMapwithoutAllKeys(DoubleIterable keys)DoubleLongHashMapwithoutKey(double key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractLongIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleLongMap
injectIntoKeyValue
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleLongMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
DoubleLongHashMap
public DoubleLongHashMap()
-
DoubleLongHashMap
public DoubleLongHashMap(int initialCapacity)
-
DoubleLongHashMap
public DoubleLongHashMap(DoubleLongMap map)
-
-
Method Detail
-
newWithKeysValues
public static DoubleLongHashMap newWithKeysValues(double key1, long value1)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceDoubleLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleLongMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLongIterable
-
longIterator
public MutableLongIterator 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
public void putAll(DoubleLongMap map)
- Specified by:
putAllin interfaceMutableDoubleLongMap
-
updateValues
public void updateValues(DoubleLongToLongFunction function)
- 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
public long getIfAbsentPut(double key, LongFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(double key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(double key, DoubleToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleLongMap
-
addToValue
public long addToValue(double key, long toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleLongMap
-
updateValue
public long updateValue(double key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableDoubleLongMap
-
withKeyValue
public DoubleLongHashMap withKeyValue(double key1, long value1)
- Specified by:
withKeyValuein interfaceMutableDoubleLongMap
-
withKeysValues
public DoubleLongHashMap withKeysValues(double key1, long value1, double key2, long value2)
-
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
public DoubleLongHashMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleLongMap
-
withoutAllKeys
public DoubleLongHashMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleLongMap
-
asUnmodifiable
public MutableDoubleLongMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleLongMap
-
asSynchronized
public MutableDoubleLongMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleLongMap
-
toImmutable
public ImmutableDoubleLongMap 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
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleKeysMap- Specified by:
forEachKeyin interfaceDoubleLongMap
-
forEachKeyValue
public void forEachKeyValue(DoubleLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleLongMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleLongMap
-
keyValuesView
public RichIterable<DoubleLongPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleLongMap
-
flipUniqueValues
public MutableLongDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleLongMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleLongMap
-
select
public DoubleLongHashMap select(DoubleLongPredicate predicate)
- Specified by:
selectin interfaceDoubleLongMap- Specified by:
selectin interfaceMutableDoubleLongMap
-
reject
public DoubleLongHashMap reject(DoubleLongPredicate predicate)
- Specified by:
rejectin interfaceDoubleLongMap- Specified by:
rejectin interfaceMutableDoubleLongMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void 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
public MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
-