public static class Float2LongMaps.SynchronizedMap extends AbstractFloat2LongMap implements Float2LongMap
AbstractFloat2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2LongMap.Entry, Float2LongMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
long |
addTo(float key,
long value)
A Helper method to add a primitives together.
|
void |
addToAll(Float2LongMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Long |
compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
Deprecated.
|
java.lang.Long |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Long> mappingFunction)
Deprecated.
|
java.lang.Long |
computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
Deprecated.
|
long |
computeLong(float key,
FloatLongUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
long |
computeLongIfAbsent(float key,
Float2LongFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
long |
computeLongIfPresent(float key,
FloatLongUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(long value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
ObjectSet<Float2LongMap.Entry> |
float2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Long> action)
Deprecated.
|
void |
forEach(FloatLongConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Long |
get(java.lang.Object key)
Deprecated.
|
long |
getDefaultReturnValue()
Method to see what the default return value is.
|
long |
getLong(float key)
A Type Specific get method to reduce boxing/unboxing
|
long |
getOrDefault(float key,
long defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Long |
getOrDefault(java.lang.Object key,
java.lang.Long defaultValue)
Deprecated.
|
FloatSet |
keySet() |
java.lang.Long |
merge(java.lang.Float key,
java.lang.Long value,
java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
Deprecated.
|
void |
mergeAllLong(Float2LongMap m,
LongLongUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
long |
mergeLong(float key,
long value,
LongLongUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
long |
put(float key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Long |
put(java.lang.Float key,
java.lang.Long value)
Deprecated.
|
void |
putAll(float[] keys,
long[] values,
int offset,
int size)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(Float2LongMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> m) |
void |
putAllIfAbsent(Float2LongMap m)
Type-Specific bulk put method put elements into the map if not present.
|
long |
putIfAbsent(float key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Long |
putIfAbsent(java.lang.Float key,
java.lang.Long value)
Deprecated.
|
long |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
long |
remFloatOrDefault(float key,
long defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
long value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Long |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
long |
replace(float key,
long value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Long |
replace(java.lang.Float key,
java.lang.Long value)
Deprecated.
|
boolean |
replace(float key,
long oldValue,
long newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Float key,
java.lang.Long oldValue,
java.lang.Long newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
Deprecated.
|
void |
replaceLongs(Float2LongMap m)
Type-Specific bulk replace method.
|
void |
replaceLongs(FloatLongUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractFloat2LongMap |
setDefaultReturnValue(long v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
LongCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic long getDefaultReturnValue()
Float2LongMapgetDefaultReturnValue in interface Float2LongMapgetDefaultReturnValue in class AbstractFloat2LongMappublic AbstractFloat2LongMap setDefaultReturnValue(long v)
Float2LongMapsetDefaultReturnValue in interface Float2LongMapsetDefaultReturnValue in class AbstractFloat2LongMapv - value that should be the default return valuepublic long put(float key,
long value)
Float2LongMapput in interface Float2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public long putIfAbsent(float key,
long value)
Float2LongMapputIfAbsent in interface Float2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Float2LongMap m)
Float2LongMapputAllIfAbsent in interface Float2LongMapputAllIfAbsent in class AbstractFloat2LongMapm - elements that should be added if not present.public long addTo(float key,
long value)
Float2LongMapaddTo in interface Float2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Float2LongMap m)
Float2LongMapaddToAll in interface Float2LongMapaddToAll in class AbstractFloat2LongMapm - the values that should be added/insertedpublic void putAll(Float2LongMap m)
Float2LongMapputAll in interface Float2LongMapputAll in class AbstractFloat2LongMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> m)
putAll in interface java.util.Map<java.lang.Float,java.lang.Long>putAll in class AbstractFloat2LongMappublic void putAll(float[] keys,
long[] values,
int offset,
int size)
Float2LongMapputAll in interface Float2LongMapputAll in class AbstractFloat2LongMapkeys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedMap.putAll(Map)public boolean containsKey(float key)
Float2LongMapcontainsKey in interface Float2LongMapcontainsKey in class AbstractFloat2LongMapkey - element that is searched forpublic boolean containsValue(long value)
Float2LongMapcontainsValue in interface Float2LongMapcontainsValue in class AbstractFloat2LongMapvalue - element that is searched forpublic long getLong(float key)
Float2LongMapgetLong in interface Float2LongFunctiongetLong in interface Float2LongMapkey - the key that is searched forpublic long remFloat(float key)
Float2LongMapremFloat in interface Float2LongMapkey - the element that should be removedpublic long remFloatOrDefault(float key,
long defaultValue)
Float2LongMapremFloatOrDefault in interface Float2LongMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(float key,
long value)
Float2LongMapremove in interface Float2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
long oldValue,
long newValue)
Float2LongMapreplace in interface Float2LongMapreplace in class AbstractFloat2LongMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public long replace(float key,
long value)
Float2LongMapreplace in interface Float2LongMapreplace in class AbstractFloat2LongMapkey - the element that should be searched forvalue - the value to replace with.public void replaceLongs(Float2LongMap m)
Float2LongMapreplaceLongs in interface Float2LongMapreplaceLongs in class AbstractFloat2LongMapm - elements that should be replaced.public void replaceLongs(FloatLongUnaryOperator mappingFunction)
Float2LongMapreplaceLongs in interface Float2LongMapreplaceLongs in class AbstractFloat2LongMapmappingFunction - operation to replace all valuespublic long computeLong(float key,
FloatLongUnaryOperator mappingFunction)
Float2LongMapcomputeLong in interface Float2LongMapcomputeLong in class AbstractFloat2LongMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic long computeLongIfAbsent(float key,
Float2LongFunction mappingFunction)
Float2LongMapcomputeLongIfAbsent in interface Float2LongMapcomputeLongIfAbsent in class AbstractFloat2LongMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic long computeLongIfPresent(float key,
FloatLongUnaryOperator mappingFunction)
Float2LongMapcomputeLongIfPresent in interface Float2LongMapcomputeLongIfPresent in class AbstractFloat2LongMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic long mergeLong(float key,
long value,
LongLongUnaryOperator mappingFunction)
Float2LongMapmergeLong in interface Float2LongMapmergeLong in class AbstractFloat2LongMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllLong(Float2LongMap m, LongLongUnaryOperator mappingFunction)
Float2LongMapmergeAllLong in interface Float2LongMapmergeAllLong in class AbstractFloat2LongMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic long getOrDefault(float key,
long defaultValue)
Float2LongMapgetOrDefault in interface Float2LongMapgetOrDefault in class AbstractFloat2LongMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(FloatLongConsumer action)
Float2LongMapforEach in interface Float2LongMapforEach in class AbstractFloat2LongMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Long>size in class java.util.AbstractMap<java.lang.Float,java.lang.Long>public FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Long>keySet in interface Float2LongMapkeySet in class AbstractFloat2LongMappublic LongCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Long>values in interface Float2LongMapvalues in class AbstractFloat2LongMappublic ObjectSet<Float2LongMap.Entry> float2LongEntrySet()
Float2LongMapfloat2LongEntrySet in interface Float2LongMap@Deprecated public java.lang.Long get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,java.lang.Long>get in interface Float2LongMapget in class AbstractFloat2LongMap@Deprecated
public java.lang.Long getOrDefault(java.lang.Object key,
java.lang.Long defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,java.lang.Long>getOrDefault in interface Float2LongMapgetOrDefault in class AbstractFloat2LongMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Long>containsValue in interface Float2LongMapcontainsValue in class java.util.AbstractMap<java.lang.Float,java.lang.Long>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Float,java.lang.Long>containsKey in interface Float2LongMapcontainsKey in class java.util.AbstractMap<java.lang.Float,java.lang.Long>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Long put(java.lang.Float key,
java.lang.Long value)
put in interface java.util.Map<java.lang.Float,java.lang.Long>put in interface Float2LongMapput in class java.util.AbstractMap<java.lang.Float,java.lang.Long>@Deprecated public java.lang.Long remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Long>remove in interface Float2LongMapremove in class java.util.AbstractMap<java.lang.Float,java.lang.Long>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Long>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Long>@Deprecated
public java.lang.Long putIfAbsent(java.lang.Float key,
java.lang.Long value)
putIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Long>putIfAbsent in interface Float2LongMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,java.lang.Long>remove in interface Float2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Float key,
java.lang.Long oldValue,
java.lang.Long newValue)
replace in interface java.util.Map<java.lang.Float,java.lang.Long>replace in interface Float2LongMap@Deprecated
public java.lang.Long replace(java.lang.Float key,
java.lang.Long value)
replace in interface java.util.Map<java.lang.Float,java.lang.Long>replace in interface Float2LongMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Float,java.lang.Long>replaceAll in interface Float2LongMap@Deprecated
public java.lang.Long compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
compute in interface java.util.Map<java.lang.Float,java.lang.Long>compute in interface Float2LongMap@Deprecated
public java.lang.Long computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Long> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Long>computeIfAbsent in interface Float2LongMap@Deprecated
public java.lang.Long computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Float,java.lang.Long>computeIfPresent in interface Float2LongMap@Deprecated
public java.lang.Long merge(java.lang.Float key,
java.lang.Long value,
java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Long,? extends java.lang.Long> mappingFunction)
merge in interface java.util.Map<java.lang.Float,java.lang.Long>merge in interface Float2LongMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Long> action)
forEach in interface java.util.Map<java.lang.Float,java.lang.Long>forEach in interface Float2LongMap