Class DoubleFloatHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
org.eclipse.collections.impl.map.mutable.primitive.DoubleFloatHashMap
- All Implemented Interfaces:
Externalizable,Serializable,FloatIterable,DoubleFloatMap,FloatValuesMap,MutableDoubleFloatMap,MutableFloatValuesMap,PrimitiveIterable,MutableDoubleKeysMap,DoubleKeysMap
public class DoubleFloatHashMap
extends AbstractMutableFloatValuesMap
implements MutableDoubleFloatMap, Externalizable, MutableDoubleKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataddToValue(double key, float toBeAdded) booleanallSatisfyKeyValue(DoubleFloatPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(double key) booleanvoidforEachKey(DoubleProcedure procedure) voidforEachKeyValue(DoubleFloatProcedure procedure) floatget(double key) floatgetAndPut(double key, float putValue, float defaultValue) floatgetIfAbsent(double key, float ifAbsent) floatgetIfAbsentPut(double key, float value) floatgetIfAbsentPut(double key, FloatFunction0 function) <P> floatgetIfAbsentPutWith(double key, FloatFunction<? super P> function, P parameter) floatgetIfAbsentPutWithKey(double key, DoubleToFloatFunction function) floatgetOrThrow(double key) inthashCode()<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) keySet()keysView()static DoubleFloatHashMapnewWithKeysValues(double key1, float value1) static DoubleFloatHashMapnewWithKeysValues(double key1, float value1, double key2, float value2) static DoubleFloatHashMapnewWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3) static DoubleFloatHashMapnewWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4) voidput(double key, float value) voidputAll(DoubleFloatMap map) voidreject(DoubleFloatPredicate predicate) voidremove(double key) voidremoveKey(double key) floatremoveKeyIfAbsent(double key, float value) select(DoubleFloatPredicate predicate) toString()booleanfloatupdateValue(double key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(DoubleFloatToFloatFunction function) values()withKeysValues(double key1, float value1, double key2, float value2) withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3) withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4) withKeyValue(double key1, float value1) withoutAllKeys(DoubleIterable keys) withoutKey(double key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
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.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.DoubleFloatMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.FloatIterable
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.FloatValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
DoubleFloatHashMap
public DoubleFloatHashMap() -
DoubleFloatHashMap
public DoubleFloatHashMap(int initialCapacity) -
DoubleFloatHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2) -
newWithKeysValues
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3) -
newWithKeysValues
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4) -
equals
- Specified by:
equalsin interfaceDoubleFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleFloatMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceDoubleFloatMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractFloatIterable
-
floatIterator
- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableFloatValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceFloatIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableDoubleKeysMap- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(double key, float value) - Specified by:
putin interfaceMutableDoubleFloatMap
-
putAll
- Specified by:
putAllin interfaceMutableDoubleFloatMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableDoubleFloatMap
-
removeKey
public void removeKey(double key) - Specified by:
removeKeyin interfaceMutableDoubleFloatMap- Specified by:
removeKeyin interfaceMutableDoubleKeysMap
-
remove
public void remove(double key) - Specified by:
removein interfaceMutableDoubleFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(double key, float value) - Specified by:
removeKeyIfAbsentin interfaceMutableDoubleFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(double key, float value) - Specified by:
getIfAbsentPutin interfaceMutableDoubleFloatMap
-
getAndPut
public float getAndPut(double key, float putValue, float defaultValue) - Specified by:
getAndPutin interfaceMutableDoubleFloatMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableDoubleFloatMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleFloatMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleFloatMap
-
addToValue
public float addToValue(double key, float toBeAdded) - Specified by:
addToValuein interfaceMutableDoubleFloatMap
-
updateValue
- Specified by:
updateValuein interfaceMutableDoubleFloatMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableDoubleFloatMap
-
withKeysValues
-
withKeysValues
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3) -
withKeysValues
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableDoubleFloatMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableDoubleFloatMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleFloatMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleFloatMap
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleFloatMap
-
get
public float get(double key) - Specified by:
getin interfaceDoubleFloatMap
-
getIfAbsent
public float getIfAbsent(double key, float ifAbsent) - Specified by:
getIfAbsentin interfaceDoubleFloatMap
-
getOrThrow
public float getOrThrow(double key) - Specified by:
getOrThrowin interfaceDoubleFloatMap
-
containsKey
public boolean containsKey(double key) - Specified by:
containsKeyin interfaceDoubleFloatMap- Specified by:
containsKeyin interfaceDoubleKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceDoubleFloatMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceDoubleFloatMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceDoubleFloatMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceDoubleFloatMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceDoubleFloatMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceDoubleFloatMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleFloatMap
-
select
- Specified by:
selectin interfaceDoubleFloatMap- Specified by:
selectin interfaceMutableDoubleFloatMap
-
reject
- Specified by:
rejectin interfaceDoubleFloatMap- Specified by:
rejectin interfaceMutableDoubleFloatMap
-
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 interfaceDoubleFloatMap
-
values
- Specified by:
valuesin interfaceFloatValuesMap
-
trimToSize()instead