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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatFloatHashMap()FloatFloatHashMap(int initialCapacity)FloatFloatHashMap(FloatFloatMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description floataddToValue(float key, float toBeAdded)MutableFloatFloatMapasSynchronized()MutableFloatFloatMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(float key)booleanequals(Object obj)MutableFloatFloatMapflipUniqueValues()MutableFloatIteratorfloatIterator()voidforEachKey(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)MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatFloatPair>keyValuesView()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)voidreadExternal(ObjectInput in)FloatFloatHashMapreject(FloatFloatPredicate predicate)voidremove(float key)voidremoveKey(float key)floatremoveKeyIfAbsent(float key, float value)FloatFloatHashMapselect(FloatFloatPredicate predicate)ImmutableFloatFloatMaptoImmutable()StringtoString()booleantrimToSize()floatupdateValue(float key, float initialValueIfAbsent, FloatToFloatFunction function)voidupdateValues(FloatFloatToFloatFunction function)MutableFloatCollectionvalues()FloatFloatHashMapwithKeysValues(float key1, float value1, float key2, float value2)FloatFloatHashMapwithKeysValues(float key1, float value1, float key2, float value2, float key3, float value3)FloatFloatHashMapwithKeysValues(float key1, float value1, float key2, float value2, float key3, float value3, float key4, float value4)FloatFloatHashMapwithKeyValue(float key1, float value1)FloatFloatHashMapwithoutAllKeys(FloatIterable keys)FloatFloatHashMapwithoutKey(float 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.map.primitive.FloatFloatMap
injectIntoKeyValue
-
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.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatFloatMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
FloatFloatHashMap
public FloatFloatHashMap()
-
FloatFloatHashMap
public FloatFloatHashMap(int initialCapacity)
-
FloatFloatHashMap
public FloatFloatHashMap(FloatFloatMap map)
-
-
Method Detail
-
newWithKeysValues
public static FloatFloatHashMap newWithKeysValues(float key1, float value1)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceFloatFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatFloatMap- 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 interfaceMutableFloatKeysMap- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(float key, float value)- Specified by:
putin interfaceMutableFloatFloatMap
-
putAll
public void putAll(FloatFloatMap map)
- Specified by:
putAllin interfaceMutableFloatFloatMap
-
updateValues
public void updateValues(FloatFloatToFloatFunction function)
- 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
public float getIfAbsentPut(float key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(float key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(float key, FloatToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatFloatMap
-
addToValue
public float addToValue(float key, float toBeAdded)- Specified by:
addToValuein interfaceMutableFloatFloatMap
-
updateValue
public float updateValue(float key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableFloatFloatMap
-
withKeyValue
public FloatFloatHashMap withKeyValue(float key1, float value1)
- Specified by:
withKeyValuein interfaceMutableFloatFloatMap
-
withKeysValues
public FloatFloatHashMap withKeysValues(float key1, float value1, float key2, float value2)
-
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
public FloatFloatHashMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatFloatMap
-
withoutAllKeys
public FloatFloatHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatFloatMap
-
asUnmodifiable
public MutableFloatFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatFloatMap
-
asSynchronized
public MutableFloatFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatFloatMap
-
toImmutable
public ImmutableFloatFloatMap 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
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatFloatMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatFloatMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatFloatMap
-
keyValuesView
public RichIterable<FloatFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatFloatMap
-
flipUniqueValues
public MutableFloatFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatFloatMap- Specified by:
flipUniqueValuesin interfaceMutableFloatFloatMap
-
select
public FloatFloatHashMap select(FloatFloatPredicate predicate)
- Specified by:
selectin interfaceFloatFloatMap- Specified by:
selectin interfaceMutableFloatFloatMap
-
reject
public FloatFloatHashMap reject(FloatFloatPredicate predicate)
- Specified by:
rejectin interfaceFloatFloatMap- Specified by:
rejectin interfaceMutableFloatFloatMap
-
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 interfaceFloatFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
-