public interface Float2LongMap extends java.util.Map<java.lang.Float,java.lang.Long>, Float2LongFunction
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Float2LongMap.Entry
Type Specific Map Entry that reduces boxing/unboxing
|
static interface |
Float2LongMap.FastEntrySet
Fast Entry set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
| 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.
|
default 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.
|
default java.lang.Long |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Long> mappingFunction)
Deprecated.
|
default 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
|
default boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(long value)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsValue(java.lang.Object value) |
ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Long>> |
entrySet()
Deprecated.
|
ObjectSet<Float2LongMap.Entry> |
float2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
default 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
|
default 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
|
default java.lang.Long |
getOrDefault(java.lang.Object key,
java.lang.Long defaultValue)
Deprecated.
|
FloatSet |
keySet() |
default 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
|
default java.lang.Long |
put(java.lang.Float key,
java.lang.Long value)
Deprecated.
|
default void |
putAll(float[] keys,
long[] values)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
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 |
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
|
default 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
|
default java.lang.Long |
remove(java.lang.Object key) |
default boolean |
remove(java.lang.Object key,
java.lang.Object value) |
long |
replace(float key,
long value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
default 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
|
default boolean |
replace(java.lang.Float key,
java.lang.Long oldValue,
java.lang.Long newValue)
Deprecated.
|
default 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
|
Float2LongMap |
setDefaultReturnValue(long v)
Method to define the default return value if a requested key isn't present
|
LongCollection |
values() |
long getDefaultReturnValue()
Float2LongMap setDefaultReturnValue(long v)
v - value that should be the default return valuelong put(float key,
long value)
key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)default void putAll(float[] keys,
long[] values)
keys - the keys that should be addedvalues - the values that should be addedjava.lang.IllegalStateException - if the arrays are not the same sizeMap.putAll(Map)void putAll(float[] keys,
long[] values,
int offset,
int size)
keys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedjava.lang.IllegalStateException - if the arrays are not within the rangeMap.putAll(Map)long putIfAbsent(float key,
long value)
key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)void putAllIfAbsent(Float2LongMap m)
m - elements that should be added if not present.long addTo(float key,
long value)
key - the key that should be inserted,value - the value that should be inserted / addedvoid addToAll(Float2LongMap m)
m - the values that should be added/insertedvoid putAll(Float2LongMap m)
m - the elements that should be insertedboolean containsKey(float key)
key - element that is searched fordefault boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Float,java.lang.Long>key - that is searched for.Map.containsKey(Object)boolean containsValue(long value)
value - element that is searched fordefault boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Long>value - that is searched for.Map.containsValue(Object)long remFloat(float key)
key - the element that should be removeddefault java.lang.Long remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Long>key - the element that should be removedMap.remove(Object)boolean remove(float key,
long value)
key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)default boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,java.lang.Long>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)long remFloatOrDefault(float key,
long defaultValue)
key - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)boolean replace(float key,
long oldValue,
long newValue)
key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.long replace(float key,
long value)
key - the element that should be searched forvalue - the value to replace with.void replaceLongs(Float2LongMap m)
m - elements that should be replaced.void replaceLongs(FloatLongUnaryOperator mappingFunction)
mappingFunction - operation to replace all valueslong computeLong(float key,
FloatLongUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the valuelong computeLongIfAbsent(float key,
Float2LongFunction mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if not presentlong computeLongIfPresent(float key,
FloatLongUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if presentlong mergeLong(float key,
long value,
LongLongUnaryOperator mappingFunction)
key - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuevoid mergeAllLong(Float2LongMap m, LongLongUnaryOperator mappingFunction)
m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Value@Deprecated
default 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>@Deprecated
default java.lang.Long replace(java.lang.Float key,
java.lang.Long value)
replace in interface java.util.Map<java.lang.Float,java.lang.Long>long getLong(float key)
getLong in interface Float2LongFunctionkey - the key that is searched forlong getOrDefault(float key,
long defaultValue)
key - the key that is searched fordefaultValue - the value that should be returned if the key is not present@Deprecated default java.lang.Long get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,java.lang.Long>@Deprecated
default java.lang.Long getOrDefault(java.lang.Object key,
java.lang.Long defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,java.lang.Long>@Deprecated default 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>@Deprecated
default 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>@Deprecated
default 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>@Deprecated
default 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>@Deprecated
default 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>void forEach(FloatLongConsumer action)
action - processor of the values that are iterator over@Deprecated default 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>FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Long>LongCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Long>@Deprecated ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Long>> entrySet()
entrySet in interface java.util.Map<java.lang.Float,java.lang.Long>ObjectSet<Float2LongMap.Entry> float2LongEntrySet()
@Deprecated
default java.lang.Long put(java.lang.Float key,
java.lang.Long value)
put in interface java.util.Map<java.lang.Float,java.lang.Long>@Deprecated
default java.lang.Long putIfAbsent(java.lang.Float key,
java.lang.Long value)
putIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Long>