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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleaddToValue(float key, double toBeAdded) booleanallSatisfyKeyValue(FloatDoublePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(float key) booleanvoidforEachKey(FloatProcedure procedure) voidforEachKeyValue(FloatDoubleProcedure procedure) doubleget(float key) doublegetAndPut(float key, double putValue, double defaultValue) doublegetIfAbsent(float key, double ifAbsent) doublegetIfAbsentPut(float key, double value) doublegetIfAbsentPut(float key, DoubleFunction0 function) <P> doublegetIfAbsentPutWith(float key, DoubleFunction<? super P> function, P parameter) doublegetIfAbsentPutWithKey(float key, FloatToDoubleFunction function) doublegetOrThrow(float key) inthashCode()<V> VinjectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) keySet()keysView()static FloatDoubleHashMapnewWithKeysValues(float key1, double value1) static FloatDoubleHashMapnewWithKeysValues(float key1, double value1, float key2, double value2) static FloatDoubleHashMapnewWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3) static FloatDoubleHashMapnewWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4) voidput(float key, double value) voidputAll(FloatDoubleMap map) voidreject(FloatDoublePredicate predicate) voidremove(float key) voidremoveKey(float key) doubleremoveKeyIfAbsent(float key, double value) select(FloatDoublePredicate predicate) toString()booleandoubleupdateValue(float key, double initialValueIfAbsent, DoubleToDoubleFunction function) voidupdateValues(FloatDoubleToDoubleFunction function) values()withKeysValues(float key1, double value1, float key2, double value2) withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3) withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4) withKeyValue(float key1, double value1) withoutAllKeys(FloatIterable keys) withoutKey(float key) voidMethods 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, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatDoubleMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatDoubleMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
FloatDoubleHashMap
public FloatDoubleHashMap() -
FloatDoubleHashMap
public FloatDoubleHashMap(int initialCapacity) -
FloatDoubleHashMap
-
-
Method Details
-
newWithKeysValues
-
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
- Specified by:
equalsin interfaceFloatDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatDoubleMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceFloatDoubleMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractDoubleIterable
-
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 interfaceMutableFloatKeysMap
-
put
public void put(float key, double value) - Specified by:
putin interfaceMutableFloatDoubleMap
-
putAll
- Specified by:
putAllin interfaceMutableFloatDoubleMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableFloatDoubleMap
-
removeKey
public void removeKey(float key) - Specified by:
removeKeyin interfaceMutableFloatDoubleMap- Specified by:
removeKeyin interfaceMutableFloatKeysMap
-
remove
public void remove(float key) - Specified by:
removein interfaceMutableFloatDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(float key, double value) - Specified by:
removeKeyIfAbsentin interfaceMutableFloatDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(float key, double value) - Specified by:
getIfAbsentPutin interfaceMutableFloatDoubleMap
-
getAndPut
public double getAndPut(float key, double putValue, double defaultValue) - Specified by:
getAndPutin interfaceMutableFloatDoubleMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableFloatDoubleMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatDoubleMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatDoubleMap
-
addToValue
public double addToValue(float key, double toBeAdded) - Specified by:
addToValuein interfaceMutableFloatDoubleMap
-
updateValue
- Specified by:
updateValuein interfaceMutableFloatDoubleMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableFloatDoubleMap
-
withKeysValues
-
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
- Specified by:
withoutKeyin interfaceMutableFloatDoubleMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableFloatDoubleMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatDoubleMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatDoubleMap
-
toImmutable
- Specified by:
toImmutablein interfaceFloatDoubleMap
-
get
public double get(float key) - Specified by:
getin interfaceFloatDoubleMap
-
getIfAbsent
public double getIfAbsent(float key, double ifAbsent) - Specified by:
getIfAbsentin interfaceFloatDoubleMap
-
getOrThrow
public double getOrThrow(float key) - Specified by:
getOrThrowin interfaceFloatDoubleMap
-
containsKey
public boolean containsKey(float key) - Specified by:
containsKeyin interfaceFloatDoubleMap- Specified by:
containsKeyin interfaceFloatKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceFloatDoubleMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceFloatDoubleMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceFloatDoubleMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceFloatDoubleMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceFloatDoubleMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceFloatDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableFloatDoubleMap
-
select
- Specified by:
selectin interfaceFloatDoubleMap- Specified by:
selectin interfaceMutableFloatDoubleMap
-
reject
- Specified by:
rejectin interfaceFloatDoubleMap- Specified by:
rejectin interfaceMutableFloatDoubleMap
-
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 interfaceFloatDoubleMap
-
values
- Specified by:
valuesin interfaceDoubleValuesMap
-
trimToSize()instead