Class FloatIntHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractIntIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableIntValuesMap
org.eclipse.collections.impl.map.mutable.primitive.FloatIntHashMap
- All Implemented Interfaces:
Externalizable,Serializable,IntIterable,FloatIntMap,IntValuesMap,MutableFloatIntMap,MutableIntValuesMap,PrimitiveIterable,MutableFloatKeysMap,FloatKeysMap
public class FloatIntHashMap
extends AbstractMutableIntValuesMap
implements MutableFloatIntMap, Externalizable, MutableFloatKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddToValue(float key, int toBeAdded) booleanallSatisfyKeyValue(FloatIntPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(float key) booleanvoidforEachKey(FloatProcedure procedure) voidforEachKeyValue(FloatIntProcedure procedure) intget(float key) intgetAndPut(float key, int putValue, int defaultValue) intgetIfAbsent(float key, int ifAbsent) intgetIfAbsentPut(float key, int value) intgetIfAbsentPut(float key, IntFunction0 function) <P> intgetIfAbsentPutWith(float key, IntFunction<? super P> function, P parameter) intgetIfAbsentPutWithKey(float key, FloatToIntFunction function) intgetOrThrow(float key) inthashCode()<V> VinjectInto(V injectedValue, ObjectIntToObjectFunction<? super V, ? extends V> function) keySet()keysView()static FloatIntHashMapnewWithKeysValues(float key1, int value1) static FloatIntHashMapnewWithKeysValues(float key1, int value1, float key2, int value2) static FloatIntHashMapnewWithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3) static FloatIntHashMapnewWithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4) voidput(float key, int value) voidputAll(FloatIntMap map) voidreject(FloatIntPredicate predicate) voidremove(float key) voidremoveKey(float key) intremoveKeyIfAbsent(float key, int value) select(FloatIntPredicate predicate) toString()booleanintupdateValue(float key, int initialValueIfAbsent, IntToIntFunction function) voidupdateValues(FloatIntToIntFunction function) values()withKeysValues(float key1, int value1, float key2, int value2) withKeysValues(float key1, int value1, float key2, int value2, float key3, int value3) withKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4) withKeyValue(float key1, int value1) withoutAllKeys(FloatIterable keys) withoutKey(float key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableIntValuesMap
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.AbstractIntIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatIntMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.IntIterable
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.IntValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatIntMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
FloatIntHashMap
public FloatIntHashMap() -
FloatIntHashMap
public FloatIntHashMap(int initialCapacity) -
FloatIntHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3) -
newWithKeysValues
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4) -
equals
- Specified by:
equalsin interfaceFloatIntMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatIntMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceFloatIntMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractIntIterable
-
intIterator
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableIntValuesMap
-
injectInto
- Specified by:
injectIntoin interfaceIntIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableFloatKeysMap- Specified by:
clearin interfaceMutableIntValuesMap
-
put
public void put(float key, int value) - Specified by:
putin interfaceMutableFloatIntMap
-
putAll
- Specified by:
putAllin interfaceMutableFloatIntMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableFloatIntMap
-
removeKey
public void removeKey(float key) - Specified by:
removeKeyin interfaceMutableFloatIntMap- Specified by:
removeKeyin interfaceMutableFloatKeysMap
-
remove
public void remove(float key) - Specified by:
removein interfaceMutableFloatIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(float key, int value) - Specified by:
removeKeyIfAbsentin interfaceMutableFloatIntMap
-
getIfAbsentPut
public int getIfAbsentPut(float key, int value) - Specified by:
getIfAbsentPutin interfaceMutableFloatIntMap
-
getAndPut
public int getAndPut(float key, int putValue, int defaultValue) - Specified by:
getAndPutin interfaceMutableFloatIntMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableFloatIntMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatIntMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatIntMap
-
addToValue
public int addToValue(float key, int toBeAdded) - Specified by:
addToValuein interfaceMutableFloatIntMap
-
updateValue
- Specified by:
updateValuein interfaceMutableFloatIntMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableFloatIntMap
-
withKeysValues
-
withKeysValues
public FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2, float key3, int value3) -
withKeysValues
public FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableFloatIntMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableFloatIntMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatIntMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatIntMap
-
toImmutable
- Specified by:
toImmutablein interfaceFloatIntMap
-
get
public int get(float key) - Specified by:
getin interfaceFloatIntMap
-
getIfAbsent
public int getIfAbsent(float key, int ifAbsent) - Specified by:
getIfAbsentin interfaceFloatIntMap
-
getOrThrow
public int getOrThrow(float key) - Specified by:
getOrThrowin interfaceFloatIntMap
-
containsKey
public boolean containsKey(float key) - Specified by:
containsKeyin interfaceFloatIntMap- Specified by:
containsKeyin interfaceFloatKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceFloatIntMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceFloatIntMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceFloatIntMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceFloatIntMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceFloatIntMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceFloatIntMap- Specified by:
flipUniqueValuesin interfaceMutableFloatIntMap
-
select
- Specified by:
selectin interfaceFloatIntMap- Specified by:
selectin interfaceMutableFloatIntMap
-
reject
- Specified by:
rejectin interfaceFloatIntMap- Specified by:
rejectin interfaceMutableFloatIntMap
-
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 interfaceFloatIntMap
-
values
- Specified by:
valuesin interfaceIntValuesMap
-
trimToSize()instead