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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataddToValue(long key, float toBeAdded) booleanallSatisfyKeyValue(LongFloatPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(long key) booleanvoidforEachKey(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) keySet()keysView()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) voidreject(LongFloatPredicate predicate) voidremove(long key) voidremoveKey(long key) floatremoveKeyIfAbsent(long key, float value) select(LongFloatPredicate predicate) toString()booleanfloatupdateValue(long key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(LongFloatToFloatFunction function) values()withKeysValues(long key1, float value1, long key2, float value2) withKeysValues(long key1, float value1, long key2, float value2, long key3, float value3) withKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4) withKeyValue(long key1, float value1) withoutAllKeys(LongIterable keys) withoutKey(long key) voidMethods 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, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.LongFloatMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongFloatMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
LongFloatHashMap
public LongFloatHashMap() -
LongFloatHashMap
public LongFloatHashMap(int initialCapacity) -
LongFloatHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
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
- Specified by:
equalsin interfaceLongFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceLongFloatMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceLongFloatMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractFloatIterable
-
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
- Specified by:
putAllin interfaceMutableLongFloatMap
-
updateValues
- 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
- Specified by:
getIfAbsentPutin interfaceMutableLongFloatMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableLongFloatMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongFloatMap
-
addToValue
public float addToValue(long key, float toBeAdded) - Specified by:
addToValuein interfaceMutableLongFloatMap
-
updateValue
- Specified by:
updateValuein interfaceMutableLongFloatMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableLongFloatMap
-
withKeysValues
-
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
- Specified by:
withoutKeyin interfaceMutableLongFloatMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableLongFloatMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableLongFloatMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableLongFloatMap
-
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
- Specified by:
forEachKeyin interfaceLongFloatMap- Specified by:
forEachKeyin interfaceLongKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceLongFloatMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceLongFloatMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceLongFloatMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceLongFloatMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceLongFloatMap- Specified by:
flipUniqueValuesin interfaceMutableLongFloatMap
-
select
- Specified by:
selectin interfaceLongFloatMap- Specified by:
selectin interfaceMutableLongFloatMap
-
reject
- Specified by:
rejectin interfaceLongFloatMap- Specified by:
rejectin interfaceMutableLongFloatMap
-
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 interfaceLongFloatMap
-
values
- Specified by:
valuesin interfaceFloatValuesMap
-
trimToSize()instead