Class FloatFloatHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
org.eclipse.collections.impl.map.mutable.primitive.FloatFloatHashMap
- All Implemented Interfaces:
Externalizable,Serializable,FloatIterable,FloatFloatMap,FloatValuesMap,MutableFloatFloatMap,MutableFloatValuesMap,PrimitiveIterable,MutableFloatKeysMap,FloatKeysMap
public class FloatFloatHashMap
extends AbstractMutableFloatValuesMap
implements MutableFloatFloatMap, Externalizable, MutableFloatKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataddToValue(float key, float toBeAdded) booleanallSatisfyKeyValue(FloatFloatPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(float key) booleanvoidforEachKey(FloatProcedure procedure) voidforEachKeyValue(FloatFloatProcedure procedure) floatget(float key) floatgetAndPut(float key, float putValue, float defaultValue) floatgetIfAbsent(float key, float ifAbsent) floatgetIfAbsentPut(float key, float value) floatgetIfAbsentPut(float key, FloatFunction0 function) <P> floatgetIfAbsentPutWith(float key, FloatFunction<? super P> function, P parameter) floatgetIfAbsentPutWithKey(float key, FloatToFloatFunction function) floatgetOrThrow(float key) inthashCode()<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) keySet()keysView()static FloatFloatHashMapnewWithKeysValues(float key1, float value1) static FloatFloatHashMapnewWithKeysValues(float key1, float value1, float key2, float value2) static FloatFloatHashMapnewWithKeysValues(float key1, float value1, float key2, float value2, float key3, float value3) static FloatFloatHashMapnewWithKeysValues(float key1, float value1, float key2, float value2, float key3, float value3, float key4, float value4) voidput(float key, float value) voidputAll(FloatFloatMap map) voidreject(FloatFloatPredicate predicate) voidremove(float key) voidremoveKey(float key) floatremoveKeyIfAbsent(float key, float value) select(FloatFloatPredicate predicate) toString()booleanfloatupdateValue(float key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(FloatFloatToFloatFunction function) values()withKeysValues(float key1, float value1, float key2, float value2) withKeysValues(float key1, float value1, float key2, float value2, float key3, float value3) withKeysValues(float key1, float value1, float key2, float value2, float key3, float value3, float key4, float value4) withKeyValue(float key1, float value1) withoutAllKeys(FloatIterable keys) withoutKey(float 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.FloatFloatMap
injectIntoKeyValueMethods 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.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatFloatMap
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
-
FloatFloatHashMap
public FloatFloatHashMap() -
FloatFloatHashMap
public FloatFloatHashMap(int initialCapacity) -
FloatFloatHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static FloatFloatHashMap newWithKeysValues(float key1, float value1, float key2, float value2) -
newWithKeysValues
public static FloatFloatHashMap newWithKeysValues(float key1, float value1, float key2, float value2, float key3, float value3) -
newWithKeysValues
public static FloatFloatHashMap newWithKeysValues(float key1, float value1, float key2, float value2, float key3, float value3, float key4, float value4) -
equals
- Specified by:
equalsin interfaceFloatFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatFloatMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceFloatFloatMap- 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 interfaceMutableFloatKeysMap- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(float key, float value) - Specified by:
putin interfaceMutableFloatFloatMap
-
putAll
- Specified by:
putAllin interfaceMutableFloatFloatMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableFloatFloatMap
-
removeKey
public void removeKey(float key) - Specified by:
removeKeyin interfaceMutableFloatFloatMap- Specified by:
removeKeyin interfaceMutableFloatKeysMap
-
remove
public void remove(float key) - Specified by:
removein interfaceMutableFloatFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(float key, float value) - Specified by:
removeKeyIfAbsentin interfaceMutableFloatFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(float key, float value) - Specified by:
getIfAbsentPutin interfaceMutableFloatFloatMap
-
getAndPut
public float getAndPut(float key, float putValue, float defaultValue) - Specified by:
getAndPutin interfaceMutableFloatFloatMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableFloatFloatMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatFloatMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatFloatMap
-
addToValue
public float addToValue(float key, float toBeAdded) - Specified by:
addToValuein interfaceMutableFloatFloatMap
-
updateValue
- Specified by:
updateValuein interfaceMutableFloatFloatMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableFloatFloatMap
-
withKeysValues
-
withKeysValues
public FloatFloatHashMap withKeysValues(float key1, float value1, float key2, float value2, float key3, float value3) -
withKeysValues
public FloatFloatHashMap withKeysValues(float key1, float value1, float key2, float value2, float key3, float value3, float key4, float value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableFloatFloatMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableFloatFloatMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatFloatMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatFloatMap
-
toImmutable
- Specified by:
toImmutablein interfaceFloatFloatMap
-
get
public float get(float key) - Specified by:
getin interfaceFloatFloatMap
-
getIfAbsent
public float getIfAbsent(float key, float ifAbsent) - Specified by:
getIfAbsentin interfaceFloatFloatMap
-
getOrThrow
public float getOrThrow(float key) - Specified by:
getOrThrowin interfaceFloatFloatMap
-
containsKey
public boolean containsKey(float key) - Specified by:
containsKeyin interfaceFloatFloatMap- Specified by:
containsKeyin interfaceFloatKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceFloatFloatMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceFloatFloatMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceFloatFloatMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceFloatFloatMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceFloatFloatMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceFloatFloatMap- Specified by:
flipUniqueValuesin interfaceMutableFloatFloatMap
-
select
- Specified by:
selectin interfaceFloatFloatMap- Specified by:
selectin interfaceMutableFloatFloatMap
-
reject
- Specified by:
rejectin interfaceFloatFloatMap- Specified by:
rejectin interfaceMutableFloatFloatMap
-
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 interfaceFloatFloatMap
-
values
- Specified by:
valuesin interfaceFloatValuesMap
-
trimToSize()instead