Class FloatDoubleHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractDoubleIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.FloatDoubleHashMap
-
- All Implemented Interfaces:
Externalizable
,Serializable
,DoubleIterable
,DoubleValuesMap
,FloatDoubleMap
,MutableDoubleValuesMap
,MutableFloatDoubleMap
,PrimitiveIterable
,MutableFloatKeysMap
,FloatKeysMap
public class FloatDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableFloatDoubleMap, Externalizable, MutableFloatKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatDoubleHashMap()
FloatDoubleHashMap(int initialCapacity)
FloatDoubleHashMap(FloatDoubleMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
addToValue(float key, double toBeAdded)
MutableFloatDoubleMap
asSynchronized()
MutableFloatDoubleMap
asUnmodifiable()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(float key)
MutableDoubleIterator
doubleIterator()
boolean
equals(Object obj)
MutableDoubleFloatMap
flipUniqueValues()
void
forEachKey(FloatProcedure procedure)
void
forEachKeyValue(FloatDoubleProcedure procedure)
double
get(float key)
double
getAndPut(float key, double putValue, double defaultValue)
double
getIfAbsent(float key, double ifAbsent)
double
getIfAbsentPut(float key, double value)
double
getIfAbsentPut(float key, DoubleFunction0 function)
<P> double
getIfAbsentPutWith(float key, DoubleFunction<? super P> function, P parameter)
double
getIfAbsentPutWithKey(float key, FloatToDoubleFunction function)
double
getOrThrow(float key)
int
hashCode()
<V> V
injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)
MutableFloatSet
keySet()
LazyFloatIterable
keysView()
RichIterable<FloatDoublePair>
keyValuesView()
static FloatDoubleHashMap
newWithKeysValues(float key1, double value1)
static FloatDoubleHashMap
newWithKeysValues(float key1, double value1, float key2, double value2)
static FloatDoubleHashMap
newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
static FloatDoubleHashMap
newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
void
put(float key, double value)
void
putAll(FloatDoubleMap map)
void
readExternal(ObjectInput in)
FloatDoubleHashMap
reject(FloatDoublePredicate predicate)
void
remove(float key)
void
removeKey(float key)
double
removeKeyIfAbsent(float key, double value)
FloatDoubleHashMap
select(FloatDoublePredicate predicate)
ImmutableFloatDoubleMap
toImmutable()
String
toString()
boolean
trimToSize()
double
updateValue(float key, double initialValueIfAbsent, DoubleToDoubleFunction function)
void
updateValues(FloatDoubleToDoubleFunction function)
MutableDoubleCollection
values()
FloatDoubleHashMap
withKeysValues(float key1, double value1, float key2, double value2)
FloatDoubleHashMap
withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
FloatDoubleHashMap
withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
FloatDoubleHashMap
withKeyValue(float key1, double value1)
FloatDoubleHashMap
withoutAllKeys(FloatIterable keys)
FloatDoubleHashMap
withoutKey(float 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.FloatDoubleMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
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.MutableFloatDoubleMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
FloatDoubleHashMap
public FloatDoubleHashMap()
-
FloatDoubleHashMap
public FloatDoubleHashMap(int initialCapacity)
-
FloatDoubleHashMap
public FloatDoubleHashMap(FloatDoubleMap map)
-
-
Method Detail
-
newWithKeysValues
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1)
-
newWithKeysValues
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2)
-
newWithKeysValues
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
-
newWithKeysValues
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceFloatDoubleMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceFloatDoubleMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceFloatDoubleMap
- 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 interfaceMutableFloatKeysMap
-
put
public void put(float key, double value)
- Specified by:
put
in interfaceMutableFloatDoubleMap
-
putAll
public void putAll(FloatDoubleMap map)
- Specified by:
putAll
in interfaceMutableFloatDoubleMap
-
updateValues
public void updateValues(FloatDoubleToDoubleFunction function)
- Specified by:
updateValues
in interfaceMutableFloatDoubleMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKey
in interfaceMutableFloatDoubleMap
- Specified by:
removeKey
in interfaceMutableFloatKeysMap
-
remove
public void remove(float key)
- Specified by:
remove
in interfaceMutableFloatDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(float key, double value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableFloatDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(float key, double value)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatDoubleMap
-
getAndPut
public double getAndPut(float key, double putValue, double defaultValue)
- Specified by:
getAndPut
in interfaceMutableFloatDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(float key, DoubleFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(float key, DoubleFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableFloatDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(float key, FloatToDoubleFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableFloatDoubleMap
-
addToValue
public double addToValue(float key, double toBeAdded)
- Specified by:
addToValue
in interfaceMutableFloatDoubleMap
-
updateValue
public double updateValue(float key, double initialValueIfAbsent, DoubleToDoubleFunction function)
- Specified by:
updateValue
in interfaceMutableFloatDoubleMap
-
withKeyValue
public FloatDoubleHashMap withKeyValue(float key1, double value1)
- Specified by:
withKeyValue
in interfaceMutableFloatDoubleMap
-
withKeysValues
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2)
-
withKeysValues
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
-
withKeysValues
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
-
withoutKey
public FloatDoubleHashMap withoutKey(float key)
- Specified by:
withoutKey
in interfaceMutableFloatDoubleMap
-
withoutAllKeys
public FloatDoubleHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableFloatDoubleMap
-
asUnmodifiable
public MutableFloatDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatDoubleMap
-
asSynchronized
public MutableFloatDoubleMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatDoubleMap
-
toImmutable
public ImmutableFloatDoubleMap toImmutable()
- Specified by:
toImmutable
in interfaceFloatDoubleMap
-
get
public double get(float key)
- Specified by:
get
in interfaceFloatDoubleMap
-
getIfAbsent
public double getIfAbsent(float key, double ifAbsent)
- Specified by:
getIfAbsent
in interfaceFloatDoubleMap
-
getOrThrow
public double getOrThrow(float key)
- Specified by:
getOrThrow
in interfaceFloatDoubleMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKey
in interfaceFloatDoubleMap
- Specified by:
containsKey
in interfaceFloatKeysMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKey
in interfaceFloatDoubleMap
- Specified by:
forEachKey
in interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatDoubleProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceFloatDoubleMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysView
in interfaceFloatDoubleMap
-
keyValuesView
public RichIterable<FloatDoublePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceFloatDoubleMap
-
flipUniqueValues
public MutableDoubleFloatMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceFloatDoubleMap
- Specified by:
flipUniqueValues
in interfaceMutableFloatDoubleMap
-
select
public FloatDoubleHashMap select(FloatDoublePredicate predicate)
- Specified by:
select
in interfaceFloatDoubleMap
- Specified by:
select
in interfaceMutableFloatDoubleMap
-
reject
public FloatDoubleHashMap reject(FloatDoublePredicate predicate)
- Specified by:
reject
in interfaceFloatDoubleMap
- Specified by:
reject
in interfaceMutableFloatDoubleMap
-
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 MutableFloatSet keySet()
- Specified by:
keySet
in interfaceFloatDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
values
in interfaceDoubleValuesMap
-
-