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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntFloatHashMap()IntFloatHashMap(int initialCapacity)IntFloatHashMap(IntFloatMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description floataddToValue(int key, float toBeAdded)MutableIntFloatMapasSynchronized()MutableIntFloatMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(int key)booleanequals(Object obj)MutableFloatIntMapflipUniqueValues()MutableFloatIteratorfloatIterator()voidforEachKey(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)MutableIntSetkeySet()LazyIntIterablekeysView()RichIterable<IntFloatPair>keyValuesView()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)voidreadExternal(ObjectInput in)IntFloatHashMapreject(IntFloatPredicate predicate)voidremove(int key)voidremoveKey(int key)floatremoveKeyIfAbsent(int key, float value)IntFloatHashMapselect(IntFloatPredicate predicate)ImmutableIntFloatMaptoImmutable()StringtoString()booleantrimToSize()floatupdateValue(int key, float initialValueIfAbsent, FloatToFloatFunction function)voidupdateValues(IntFloatToFloatFunction function)MutableFloatCollectionvalues()IntFloatHashMapwithKeysValues(int key1, float value1, int key2, float value2)IntFloatHashMapwithKeysValues(int key1, float value1, int key2, float value2, int key3, float value3)IntFloatHashMapwithKeysValues(int key1, float value1, int key2, float value2, int key3, float value3, int key4, float value4)IntFloatHashMapwithKeyValue(int key1, float value1)IntFloatHashMapwithoutAllKeys(IntIterable keys)IntFloatHashMapwithoutKey(int key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.IntKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntFloatMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
IntFloatHashMap
public IntFloatHashMap()
-
IntFloatHashMap
public IntFloatHashMap(int initialCapacity)
-
IntFloatHashMap
public IntFloatHashMap(IntFloatMap map)
-
-
Method Detail
-
newWithKeysValues
public static IntFloatHashMap newWithKeysValues(int key1, float value1)
-
newWithKeysValues
public static IntFloatHashMap newWithKeysValues(int key1, float value1, int key2, float value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceIntFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceIntFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceIntFloatMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractFloatIterable
-
floatIterator
public MutableFloatIterator 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
public void putAll(IntFloatMap map)
- Specified by:
putAllin interfaceMutableIntFloatMap
-
updateValues
public void updateValues(IntFloatToFloatFunction function)
- 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
public float getIfAbsentPut(int key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableIntFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(int key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableIntFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(int key, IntToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntFloatMap
-
addToValue
public float addToValue(int key, float toBeAdded)- Specified by:
addToValuein interfaceMutableIntFloatMap
-
updateValue
public float updateValue(int key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableIntFloatMap
-
withKeyValue
public IntFloatHashMap withKeyValue(int key1, float value1)
- Specified by:
withKeyValuein interfaceMutableIntFloatMap
-
withKeysValues
public IntFloatHashMap withKeysValues(int key1, float value1, int key2, float value2)
-
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
public IntFloatHashMap withoutKey(int key)
- Specified by:
withoutKeyin interfaceMutableIntFloatMap
-
withoutAllKeys
public IntFloatHashMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableIntFloatMap
-
asUnmodifiable
public MutableIntFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableIntFloatMap
-
asSynchronized
public MutableIntFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableIntFloatMap
-
toImmutable
public ImmutableIntFloatMap 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
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKeyin interfaceIntFloatMap- Specified by:
forEachKeyin interfaceIntKeysMap
-
forEachKeyValue
public void forEachKeyValue(IntFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceIntFloatMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysViewin interfaceIntFloatMap
-
keyValuesView
public RichIterable<IntFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceIntFloatMap
-
flipUniqueValues
public MutableFloatIntMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceIntFloatMap- Specified by:
flipUniqueValuesin interfaceMutableIntFloatMap
-
select
public IntFloatHashMap select(IntFloatPredicate predicate)
- Specified by:
selectin interfaceIntFloatMap- Specified by:
selectin interfaceMutableIntFloatMap
-
reject
public IntFloatHashMap reject(IntFloatPredicate predicate)
- Specified by:
rejectin interfaceIntFloatMap- Specified by:
rejectin interfaceMutableIntFloatMap
-
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 MutableIntSet keySet()
- Specified by:
keySetin interfaceIntFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
-