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