Class LongFloatHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractFloatIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.LongFloatHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,FloatIterable,FloatValuesMap,LongFloatMap,MutableFloatValuesMap,MutableLongFloatMap,PrimitiveIterable,MutableLongKeysMap,LongKeysMap
public class LongFloatHashMap extends AbstractMutableFloatValuesMap implements MutableLongFloatMap, Externalizable, MutableLongKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongFloatHashMap()LongFloatHashMap(int initialCapacity)LongFloatHashMap(LongFloatMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description floataddToValue(long key, float toBeAdded)MutableLongFloatMapasSynchronized()MutableLongFloatMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(long key)booleanequals(Object obj)MutableFloatLongMapflipUniqueValues()MutableFloatIteratorfloatIterator()voidforEachKey(LongProcedure procedure)voidforEachKeyValue(LongFloatProcedure procedure)floatget(long key)floatgetAndPut(long key, float putValue, float defaultValue)floatgetIfAbsent(long key, float ifAbsent)floatgetIfAbsentPut(long key, float value)floatgetIfAbsentPut(long key, FloatFunction0 function)<P> floatgetIfAbsentPutWith(long key, FloatFunction<? super P> function, P parameter)floatgetIfAbsentPutWithKey(long key, LongToFloatFunction function)floatgetOrThrow(long key)inthashCode()<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V,? extends V> function)MutableLongSetkeySet()LazyLongIterablekeysView()RichIterable<LongFloatPair>keyValuesView()static LongFloatHashMapnewWithKeysValues(long key1, float value1)static LongFloatHashMapnewWithKeysValues(long key1, float value1, long key2, float value2)static LongFloatHashMapnewWithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3)static LongFloatHashMapnewWithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4)voidput(long key, float value)voidputAll(LongFloatMap map)voidreadExternal(ObjectInput in)LongFloatHashMapreject(LongFloatPredicate predicate)voidremove(long key)voidremoveKey(long key)floatremoveKeyIfAbsent(long key, float value)LongFloatHashMapselect(LongFloatPredicate predicate)ImmutableLongFloatMaptoImmutable()StringtoString()booleantrimToSize()floatupdateValue(long key, float initialValueIfAbsent, FloatToFloatFunction function)voidupdateValues(LongFloatToFloatFunction function)MutableFloatCollectionvalues()LongFloatHashMapwithKeysValues(long key1, float value1, long key2, float value2)LongFloatHashMapwithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3)LongFloatHashMapwithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4)LongFloatHashMapwithKeyValue(long key1, float value1)LongFloatHashMapwithoutAllKeys(LongIterable keys)LongFloatHashMapwithoutKey(long 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.LongFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
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.MutableLongFloatMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
LongFloatHashMap
public LongFloatHashMap()
-
LongFloatHashMap
public LongFloatHashMap(int initialCapacity)
-
LongFloatHashMap
public LongFloatHashMap(LongFloatMap map)
-
-
Method Detail
-
newWithKeysValues
public static LongFloatHashMap newWithKeysValues(long key1, float value1)
-
newWithKeysValues
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2)
-
newWithKeysValues
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3)
-
newWithKeysValues
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceLongFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongFloatMap- 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 interfaceMutableLongKeysMap
-
put
public void put(long key, float value)- Specified by:
putin interfaceMutableLongFloatMap
-
putAll
public void putAll(LongFloatMap map)
- Specified by:
putAllin interfaceMutableLongFloatMap
-
updateValues
public void updateValues(LongFloatToFloatFunction function)
- Specified by:
updateValuesin interfaceMutableLongFloatMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongFloatMap- Specified by:
removeKeyin interfaceMutableLongKeysMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(long key, float value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(long key, float value)- Specified by:
getIfAbsentPutin interfaceMutableLongFloatMap
-
getAndPut
public float getAndPut(long key, float putValue, float defaultValue)- Specified by:
getAndPutin interfaceMutableLongFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(long key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(long key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(long key, LongToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongFloatMap
-
addToValue
public float addToValue(long key, float toBeAdded)- Specified by:
addToValuein interfaceMutableLongFloatMap
-
updateValue
public float updateValue(long key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableLongFloatMap
-
withKeyValue
public LongFloatHashMap withKeyValue(long key1, float value1)
- Specified by:
withKeyValuein interfaceMutableLongFloatMap
-
withKeysValues
public LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2)
-
withKeysValues
public LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2, long key3, float value3)
-
withKeysValues
public LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4)
-
withoutKey
public LongFloatHashMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongFloatMap
-
withoutAllKeys
public LongFloatHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongFloatMap
-
asUnmodifiable
public MutableLongFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongFloatMap
-
asSynchronized
public MutableLongFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongFloatMap
-
toImmutable
public ImmutableLongFloatMap toImmutable()
- Specified by:
toImmutablein interfaceLongFloatMap
-
get
public float get(long key)
- Specified by:
getin interfaceLongFloatMap
-
getIfAbsent
public float getIfAbsent(long key, float ifAbsent)- Specified by:
getIfAbsentin interfaceLongFloatMap
-
getOrThrow
public float getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongFloatMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongFloatMap- Specified by:
containsKeyin interfaceLongKeysMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongFloatMap- Specified by:
forEachKeyin interfaceLongKeysMap
-
forEachKeyValue
public void forEachKeyValue(LongFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongFloatMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongFloatMap
-
keyValuesView
public RichIterable<LongFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongFloatMap
-
flipUniqueValues
public MutableFloatLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongFloatMap- Specified by:
flipUniqueValuesin interfaceMutableLongFloatMap
-
select
public LongFloatHashMap select(LongFloatPredicate predicate)
- Specified by:
selectin interfaceLongFloatMap- Specified by:
selectin interfaceMutableLongFloatMap
-
reject
public LongFloatHashMap reject(LongFloatPredicate predicate)
- Specified by:
rejectin interfaceLongFloatMap- Specified by:
rejectin interfaceMutableLongFloatMap
-
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 MutableLongSet keySet()
- Specified by:
keySetin interfaceLongFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
-