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 double
addToValue(long key, double toBeAdded)
MutableLongDoubleMap
asSynchronized()
MutableLongDoubleMap
asUnmodifiable()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(long key)
MutableDoubleIterator
doubleIterator()
boolean
equals(Object obj)
MutableDoubleLongMap
flipUniqueValues()
void
forEachKey(LongProcedure procedure)
void
forEachKeyValue(LongDoubleProcedure procedure)
double
get(long key)
double
getAndPut(long key, double putValue, double defaultValue)
double
getIfAbsent(long key, double ifAbsent)
double
getIfAbsentPut(long key, double value)
double
getIfAbsentPut(long key, DoubleFunction0 function)
<P> double
getIfAbsentPutWith(long key, DoubleFunction<? super P> function, P parameter)
double
getIfAbsentPutWithKey(long key, LongToDoubleFunction function)
double
getOrThrow(long key)
int
hashCode()
<V> V
injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)
MutableLongSet
keySet()
LazyLongIterable
keysView()
RichIterable<LongDoublePair>
keyValuesView()
static LongDoubleHashMap
newWithKeysValues(long key1, double value1)
static LongDoubleHashMap
newWithKeysValues(long key1, double value1, long key2, double value2)
static LongDoubleHashMap
newWithKeysValues(long key1, double value1, long key2, double value2, long key3, double value3)
static LongDoubleHashMap
newWithKeysValues(long key1, double value1, long key2, double value2, long key3, double value3, long key4, double value4)
void
put(long key, double value)
void
putAll(LongDoubleMap map)
void
readExternal(ObjectInput in)
LongDoubleHashMap
reject(LongDoublePredicate predicate)
void
remove(long key)
void
removeKey(long key)
double
removeKeyIfAbsent(long key, double value)
LongDoubleHashMap
select(LongDoublePredicate predicate)
ImmutableLongDoubleMap
toImmutable()
String
toString()
boolean
trimToSize()
double
updateValue(long key, double initialValueIfAbsent, DoubleToDoubleFunction function)
void
updateValues(LongDoubleToDoubleFunction function)
MutableDoubleCollection
values()
LongDoubleHashMap
withKeysValues(long key1, double value1, long key2, double value2)
LongDoubleHashMap
withKeysValues(long key1, double value1, long key2, double value2, long key3, double value3)
LongDoubleHashMap
withKeysValues(long key1, double value1, long key2, double value2, long key3, double value3, long key4, double value4)
LongDoubleHashMap
withKeyValue(long key1, double value1)
LongDoubleHashMap
withoutAllKeys(LongIterable keys)
LongDoubleHashMap
withoutKey(long key)
void
writeExternal(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:
equals
in interfaceLongDoubleMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceLongDoubleMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceLongDoubleMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractDoubleIterable
-
doubleIterator
public MutableDoubleIterator doubleIterator()
- Specified by:
doubleIterator
in interfaceDoubleIterable
- Specified by:
doubleIterator
in interfaceMutableDoubleValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceDoubleIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableDoubleValuesMap
- Specified by:
clear
in interfaceMutableLongKeysMap
-
put
public void put(long key, double value)
- Specified by:
put
in interfaceMutableLongDoubleMap
-
putAll
public void putAll(LongDoubleMap map)
- Specified by:
putAll
in interfaceMutableLongDoubleMap
-
updateValues
public void updateValues(LongDoubleToDoubleFunction function)
- Specified by:
updateValues
in interfaceMutableLongDoubleMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKey
in interfaceMutableLongDoubleMap
- Specified by:
removeKey
in interfaceMutableLongKeysMap
-
remove
public void remove(long key)
- Specified by:
remove
in interfaceMutableLongDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(long key, double value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableLongDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(long key, double value)
- Specified by:
getIfAbsentPut
in interfaceMutableLongDoubleMap
-
getAndPut
public double getAndPut(long key, double putValue, double defaultValue)
- Specified by:
getAndPut
in interfaceMutableLongDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(long key, DoubleFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableLongDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(long key, DoubleFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableLongDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(long key, LongToDoubleFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableLongDoubleMap
-
addToValue
public double addToValue(long key, double toBeAdded)
- Specified by:
addToValue
in interfaceMutableLongDoubleMap
-
updateValue
public double updateValue(long key, double initialValueIfAbsent, DoubleToDoubleFunction function)
- Specified by:
updateValue
in interfaceMutableLongDoubleMap
-
withKeyValue
public LongDoubleHashMap withKeyValue(long key1, double value1)
- Specified by:
withKeyValue
in 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:
withoutKey
in interfaceMutableLongDoubleMap
-
withoutAllKeys
public LongDoubleHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableLongDoubleMap
-
asUnmodifiable
public MutableLongDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableLongDoubleMap
-
asSynchronized
public MutableLongDoubleMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableLongDoubleMap
-
toImmutable
public ImmutableLongDoubleMap toImmutable()
- Specified by:
toImmutable
in interfaceLongDoubleMap
-
get
public double get(long key)
- Specified by:
get
in interfaceLongDoubleMap
-
getIfAbsent
public double getIfAbsent(long key, double ifAbsent)
- Specified by:
getIfAbsent
in interfaceLongDoubleMap
-
getOrThrow
public double getOrThrow(long key)
- Specified by:
getOrThrow
in interfaceLongDoubleMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKey
in interfaceLongDoubleMap
- Specified by:
containsKey
in interfaceLongKeysMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKey
in interfaceLongDoubleMap
- Specified by:
forEachKey
in interfaceLongKeysMap
-
forEachKeyValue
public void forEachKeyValue(LongDoubleProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceLongDoubleMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysView
in interfaceLongDoubleMap
-
keyValuesView
public RichIterable<LongDoublePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceLongDoubleMap
-
flipUniqueValues
public MutableDoubleLongMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceLongDoubleMap
- Specified by:
flipUniqueValues
in interfaceMutableLongDoubleMap
-
select
public LongDoubleHashMap select(LongDoublePredicate predicate)
- Specified by:
select
in interfaceLongDoubleMap
- Specified by:
select
in interfaceMutableLongDoubleMap
-
reject
public LongDoubleHashMap reject(LongDoublePredicate predicate)
- Specified by:
reject
in interfaceLongDoubleMap
- Specified by:
reject
in interfaceMutableLongDoubleMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
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:
keySet
in interfaceLongDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
values
in interfaceDoubleValuesMap
-
-