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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatLongHashMap()FloatLongHashMap(int initialCapacity)FloatLongHashMap(FloatLongMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longaddToValue(float key, long toBeAdded)MutableFloatLongMapasSynchronized()MutableFloatLongMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(float key)booleanequals(Object obj)MutableLongFloatMapflipUniqueValues()voidforEachKey(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)MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatLongPair>keyValuesView()MutableLongIteratorlongIterator()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)voidreadExternal(ObjectInput in)FloatLongHashMapreject(FloatLongPredicate predicate)voidremove(float key)voidremoveKey(float key)longremoveKeyIfAbsent(float key, long value)FloatLongHashMapselect(FloatLongPredicate predicate)ImmutableFloatLongMaptoImmutable()StringtoString()booleantrimToSize()longupdateValue(float key, long initialValueIfAbsent, LongToLongFunction function)voidupdateValues(FloatLongToLongFunction function)MutableLongCollectionvalues()FloatLongHashMapwithKeysValues(float key1, long value1, float key2, long value2)FloatLongHashMapwithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3)FloatLongHashMapwithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4)FloatLongHashMapwithKeyValue(float key1, long value1)FloatLongHashMapwithoutAllKeys(FloatIterable keys)FloatLongHashMapwithoutKey(float key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractLongIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatLongMap
injectIntoKeyValue
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatLongMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
FloatLongHashMap
public FloatLongHashMap()
-
FloatLongHashMap
public FloatLongHashMap(int initialCapacity)
-
FloatLongHashMap
public FloatLongHashMap(FloatLongMap map)
-
-
Method Detail
-
newWithKeysValues
public static FloatLongHashMap newWithKeysValues(float key1, long value1)
-
newWithKeysValues
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceFloatLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatLongMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLongIterable
-
longIterator
public MutableLongIterator 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
public void putAll(FloatLongMap map)
- Specified by:
putAllin interfaceMutableFloatLongMap
-
updateValues
public void updateValues(FloatLongToLongFunction function)
- 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
public long getIfAbsentPut(float key, LongFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(float key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(float key, FloatToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatLongMap
-
addToValue
public long addToValue(float key, long toBeAdded)- Specified by:
addToValuein interfaceMutableFloatLongMap
-
updateValue
public long updateValue(float key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableFloatLongMap
-
withKeyValue
public FloatLongHashMap withKeyValue(float key1, long value1)
- Specified by:
withKeyValuein interfaceMutableFloatLongMap
-
withKeysValues
public FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2)
-
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
public FloatLongHashMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatLongMap
-
withoutAllKeys
public FloatLongHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatLongMap
-
asUnmodifiable
public MutableFloatLongMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatLongMap
-
asSynchronized
public MutableFloatLongMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatLongMap
-
toImmutable
public ImmutableFloatLongMap 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
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatKeysMap- Specified by:
forEachKeyin interfaceFloatLongMap
-
forEachKeyValue
public void forEachKeyValue(FloatLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatLongMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatLongMap
-
keyValuesView
public RichIterable<FloatLongPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatLongMap
-
flipUniqueValues
public MutableLongFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatLongMap- Specified by:
flipUniqueValuesin interfaceMutableFloatLongMap
-
select
public FloatLongHashMap select(FloatLongPredicate predicate)
- Specified by:
selectin interfaceFloatLongMap- Specified by:
selectin interfaceMutableFloatLongMap
-
reject
public FloatLongHashMap reject(FloatLongPredicate predicate)
- Specified by:
rejectin interfaceFloatLongMap- Specified by:
rejectin interfaceMutableFloatLongMap
-
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 interfaceFloatLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
-