Class FloatLongHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractLongIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
org.eclipse.collections.impl.map.mutable.primitive.FloatLongHashMap
- All Implemented Interfaces:
Externalizable,Serializable,LongIterable,FloatLongMap,LongValuesMap,MutableFloatLongMap,MutableLongValuesMap,PrimitiveIterable,MutableFloatKeysMap,FloatKeysMap
public class FloatLongHashMap
extends AbstractMutableLongValuesMap
implements MutableFloatLongMap, Externalizable, MutableFloatKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaddToValue(float key, long toBeAdded) booleanallSatisfyKeyValue(FloatLongPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(float key) booleanvoidforEachKey(FloatProcedure procedure) voidforEachKeyValue(FloatLongProcedure procedure) longget(float key) longgetAndPut(float key, long putValue, long defaultValue) longgetIfAbsent(float key, long ifAbsent) longgetIfAbsentPut(float key, long value) longgetIfAbsentPut(float key, LongFunction0 function) <P> longgetIfAbsentPutWith(float key, LongFunction<? super P> function, P parameter) longgetIfAbsentPutWithKey(float key, FloatToLongFunction function) longgetOrThrow(float key) inthashCode()<V> VinjectInto(V injectedValue, ObjectLongToObjectFunction<? super V, ? extends V> function) keySet()keysView()static FloatLongHashMapnewWithKeysValues(float key1, long value1) static FloatLongHashMapnewWithKeysValues(float key1, long value1, float key2, long value2) static FloatLongHashMapnewWithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3) static FloatLongHashMapnewWithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4) voidput(float key, long value) voidputAll(FloatLongMap map) voidreject(FloatLongPredicate predicate) voidremove(float key) voidremoveKey(float key) longremoveKeyIfAbsent(float key, long value) select(FloatLongPredicate predicate) toString()booleanlongupdateValue(float key, long initialValueIfAbsent, LongToLongFunction function) voidupdateValues(FloatLongToLongFunction function) values()withKeysValues(float key1, long value1, float key2, long value2) withKeysValues(float key1, long value1, float key2, long value2, float key3, long value3) withKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4) withKeyValue(float key1, long value1) withoutAllKeys(FloatIterable keys) withoutKey(float key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
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.AbstractLongIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatLongMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.LongIterable
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.LongValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatLongMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
FloatLongHashMap
public FloatLongHashMap() -
FloatLongHashMap
public FloatLongHashMap(int initialCapacity) -
FloatLongHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3) -
newWithKeysValues
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4) -
equals
- Specified by:
equalsin interfaceFloatLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatLongMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceFloatLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLongIterable
-
longIterator
- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceLongIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableFloatKeysMap- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(float key, long value) - Specified by:
putin interfaceMutableFloatLongMap
-
putAll
- Specified by:
putAllin interfaceMutableFloatLongMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableFloatLongMap
-
removeKey
public void removeKey(float key) - Specified by:
removeKeyin interfaceMutableFloatKeysMap- Specified by:
removeKeyin interfaceMutableFloatLongMap
-
remove
public void remove(float key) - Specified by:
removein interfaceMutableFloatLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(float key, long value) - Specified by:
removeKeyIfAbsentin interfaceMutableFloatLongMap
-
getIfAbsentPut
public long getIfAbsentPut(float key, long value) - Specified by:
getIfAbsentPutin interfaceMutableFloatLongMap
-
getAndPut
public long getAndPut(float key, long putValue, long defaultValue) - Specified by:
getAndPutin interfaceMutableFloatLongMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableFloatLongMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatLongMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatLongMap
-
addToValue
public long addToValue(float key, long toBeAdded) - Specified by:
addToValuein interfaceMutableFloatLongMap
-
updateValue
- Specified by:
updateValuein interfaceMutableFloatLongMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableFloatLongMap
-
withKeysValues
-
withKeysValues
public FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2, float key3, long value3) -
withKeysValues
public FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableFloatLongMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableFloatLongMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatLongMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatLongMap
-
toImmutable
- Specified by:
toImmutablein interfaceFloatLongMap
-
get
public long get(float key) - Specified by:
getin interfaceFloatLongMap
-
getIfAbsent
public long getIfAbsent(float key, long ifAbsent) - Specified by:
getIfAbsentin interfaceFloatLongMap
-
getOrThrow
public long getOrThrow(float key) - Specified by:
getOrThrowin interfaceFloatLongMap
-
containsKey
public boolean containsKey(float key) - Specified by:
containsKeyin interfaceFloatKeysMap- Specified by:
containsKeyin interfaceFloatLongMap
-
forEachKey
- Specified by:
forEachKeyin interfaceFloatKeysMap- Specified by:
forEachKeyin interfaceFloatLongMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceFloatLongMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceFloatLongMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceFloatLongMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceFloatLongMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceFloatLongMap- Specified by:
flipUniqueValuesin interfaceMutableFloatLongMap
-
select
- Specified by:
selectin interfaceFloatLongMap- Specified by:
selectin interfaceMutableFloatLongMap
-
reject
- Specified by:
rejectin interfaceFloatLongMap- Specified by:
rejectin interfaceMutableFloatLongMap
-
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 interfaceFloatLongMap
-
values
- Specified by:
valuesin interfaceLongValuesMap
-
trimToSize()instead