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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatIntHashMap()FloatIntHashMap(int initialCapacity)FloatIntHashMap(FloatIntMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intaddToValue(float key, int toBeAdded)MutableFloatIntMapasSynchronized()MutableFloatIntMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(float key)booleanequals(Object obj)MutableIntFloatMapflipUniqueValues()voidforEachKey(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)MutableIntIteratorintIterator()MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatIntPair>keyValuesView()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)voidreadExternal(ObjectInput in)FloatIntHashMapreject(FloatIntPredicate predicate)voidremove(float key)voidremoveKey(float key)intremoveKeyIfAbsent(float key, int value)FloatIntHashMapselect(FloatIntPredicate predicate)ImmutableFloatIntMaptoImmutable()StringtoString()booleantrimToSize()intupdateValue(float key, int initialValueIfAbsent, IntToIntFunction function)voidupdateValues(FloatIntToIntFunction function)MutableIntCollectionvalues()FloatIntHashMapwithKeysValues(float key1, int value1, float key2, int value2)FloatIntHashMapwithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3)FloatIntHashMapwithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4)FloatIntHashMapwithKeyValue(float key1, int value1)FloatIntHashMapwithoutAllKeys(FloatIterable keys)FloatIntHashMapwithoutKey(float key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractIntIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatIntMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, size
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatIntMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
FloatIntHashMap
public FloatIntHashMap()
-
FloatIntHashMap
public FloatIntHashMap(int initialCapacity)
-
FloatIntHashMap
public FloatIntHashMap(FloatIntMap map)
-
-
Method Detail
-
newWithKeysValues
public static FloatIntHashMap newWithKeysValues(float key1, int value1)
-
newWithKeysValues
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceFloatIntMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatIntMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatIntMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractIntIterable
-
intIterator
public MutableIntIterator intIterator()
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableIntValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectIntToObjectFunction<? super V,? extends V> function)- 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
public void putAll(FloatIntMap map)
- Specified by:
putAllin interfaceMutableFloatIntMap
-
updateValues
public void updateValues(FloatIntToIntFunction function)
- 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
public int getIfAbsentPut(float key, IntFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatIntMap
-
getIfAbsentPutWith
public <P> int getIfAbsentPutWith(float key, IntFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatIntMap
-
getIfAbsentPutWithKey
public int getIfAbsentPutWithKey(float key, FloatToIntFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatIntMap
-
addToValue
public int addToValue(float key, int toBeAdded)- Specified by:
addToValuein interfaceMutableFloatIntMap
-
updateValue
public int updateValue(float key, int initialValueIfAbsent, IntToIntFunction function)- Specified by:
updateValuein interfaceMutableFloatIntMap
-
withKeyValue
public FloatIntHashMap withKeyValue(float key1, int value1)
- Specified by:
withKeyValuein interfaceMutableFloatIntMap
-
withKeysValues
public FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2)
-
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
public FloatIntHashMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatIntMap
-
withoutAllKeys
public FloatIntHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatIntMap
-
asUnmodifiable
public MutableFloatIntMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatIntMap
-
asSynchronized
public MutableFloatIntMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatIntMap
-
toImmutable
public ImmutableFloatIntMap 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
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatIntMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatIntProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatIntMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatIntMap
-
keyValuesView
public RichIterable<FloatIntPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatIntMap
-
flipUniqueValues
public MutableIntFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatIntMap- Specified by:
flipUniqueValuesin interfaceMutableFloatIntMap
-
select
public FloatIntHashMap select(FloatIntPredicate predicate)
- Specified by:
selectin interfaceFloatIntMap- Specified by:
selectin interfaceMutableFloatIntMap
-
reject
public FloatIntHashMap reject(FloatIntPredicate predicate)
- Specified by:
rejectin interfaceFloatIntMap- Specified by:
rejectin interfaceMutableFloatIntMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void 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
public MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatIntMap
-
values
public MutableIntCollection values()
- Specified by:
valuesin interfaceIntValuesMap
-
-