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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongDoubleHashMap()LongDoubleHashMap(int initialCapacity)LongDoubleHashMap(LongDoubleMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doubleaddToValue(long key, double toBeAdded)MutableLongDoubleMapasSynchronized()MutableLongDoubleMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(long key)MutableDoubleIteratordoubleIterator()booleanequals(Object obj)MutableDoubleLongMapflipUniqueValues()voidforEachKey(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)MutableLongSetkeySet()LazyLongIterablekeysView()RichIterable<LongDoublePair>keyValuesView()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)voidreadExternal(ObjectInput in)LongDoubleHashMapreject(LongDoublePredicate predicate)voidremove(long key)voidremoveKey(long key)doubleremoveKeyIfAbsent(long key, double value)LongDoubleHashMapselect(LongDoublePredicate predicate)ImmutableLongDoubleMaptoImmutable()StringtoString()booleantrimToSize()doubleupdateValue(long key, double initialValueIfAbsent, DoubleToDoubleFunction function)voidupdateValues(LongDoubleToDoubleFunction function)MutableDoubleCollectionvalues()LongDoubleHashMapwithKeysValues(long key1, double value1, long key2, double value2)LongDoubleHashMapwithKeysValues(long key1, double value1, long key2, double value2, long key3, double value3)LongDoubleHashMapwithKeysValues(long key1, double value1, long key2, double value2, long key3, double value3, long key4, double value4)LongDoubleHashMapwithKeyValue(long key1, double value1)LongDoubleHashMapwithoutAllKeys(LongIterable keys)LongDoubleHashMapwithoutKey(long key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongDoubleMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
LongDoubleHashMap
public LongDoubleHashMap()
-
LongDoubleHashMap
public LongDoubleHashMap(int initialCapacity)
-
LongDoubleHashMap
public LongDoubleHashMap(LongDoubleMap map)
-
-
Method Detail
-
newWithKeysValues
public static LongDoubleHashMap newWithKeysValues(long key1, double value1)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceLongDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongDoubleMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongDoubleMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractDoubleIterable
-
doubleIterator
public MutableDoubleIterator 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
public void putAll(LongDoubleMap map)
- Specified by:
putAllin interfaceMutableLongDoubleMap
-
updateValues
public void updateValues(LongDoubleToDoubleFunction function)
- 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
public double getIfAbsentPut(long key, DoubleFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(long key, DoubleFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(long key, LongToDoubleFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongDoubleMap
-
addToValue
public double addToValue(long key, double toBeAdded)- Specified by:
addToValuein interfaceMutableLongDoubleMap
-
updateValue
public double updateValue(long key, double initialValueIfAbsent, DoubleToDoubleFunction function)- Specified by:
updateValuein interfaceMutableLongDoubleMap
-
withKeyValue
public LongDoubleHashMap withKeyValue(long key1, double value1)
- Specified by:
withKeyValuein interfaceMutableLongDoubleMap
-
withKeysValues
public LongDoubleHashMap withKeysValues(long key1, double value1, long key2, double value2)
-
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
public LongDoubleHashMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongDoubleMap
-
withoutAllKeys
public LongDoubleHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongDoubleMap
-
asUnmodifiable
public MutableLongDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongDoubleMap
-
asSynchronized
public MutableLongDoubleMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongDoubleMap
-
toImmutable
public ImmutableLongDoubleMap 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
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongDoubleMap- Specified by:
forEachKeyin interfaceLongKeysMap
-
forEachKeyValue
public void forEachKeyValue(LongDoubleProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongDoubleMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongDoubleMap
-
keyValuesView
public RichIterable<LongDoublePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongDoubleMap
-
flipUniqueValues
public MutableDoubleLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableLongDoubleMap
-
select
public LongDoubleHashMap select(LongDoublePredicate predicate)
- Specified by:
selectin interfaceLongDoubleMap- Specified by:
selectin interfaceMutableLongDoubleMap
-
reject
public LongDoubleHashMap reject(LongDoublePredicate predicate)
- Specified by:
rejectin interfaceLongDoubleMap- Specified by:
rejectin interfaceMutableLongDoubleMap
-
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 MutableLongSet keySet()
- Specified by:
keySetin interfaceLongDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceDoubleValuesMap
-
-