public static class Float2LongMaps.UnmodifyableMap extends AbstractFloat2LongMap implements Float2LongMap
AbstractFloat2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2LongMap.BuilderCache, Float2LongMap.Entry, Float2LongMap.FastEntrySet, Float2LongMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
long |
addTo(float key,
long value)
A Helper method to add a primitives together.
|
void |
clear() |
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
|
Float2LongMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Float2LongMap.Entry> |
float2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
long |
get(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
|
FloatSet |
keySet() |
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
|
long |
putIfAbsent(float key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float key,
long value)
Type Specific remove function to reduce boxing/unboxing
|
long |
removeOrDefault(float key,
long defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
void |
replaceLongs(Float2LongMap m)
Type-Specific bulk replace method.
|
void |
replaceLongs(FloatLongUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
long |
subFrom(float key,
long value)
A Helper method to subtract from primitive from each other.
|
long |
supplyLongIfAbsent(float key,
LongSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
LongCollection |
values() |
addToAll, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, setDefaultReturnValuecontainsKey, containsValue, isEmpty, size, toStringaddToAll, applyAsLong, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, setDefaultReturnValue, synchronize, synchronize, unmodifiablepublic 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 long addTo(float key,
long value)
Float2LongMapaddTo in interface Float2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic long subFrom(float key,
long value)
Float2LongMapFloat2LongMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Float2LongMapkey - that should be subtract fromvalue - that should be subtractpublic long remove(float key)
Float2LongMapremove in interface Float2LongMapkey - the element that should be removedpublic long removeOrDefault(float key,
long defaultValue)
Float2LongMapremoveOrDefault 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 long get(float key)
Float2LongMapget in interface Float2LongMapkey - the key that is searched forpublic 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 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 supplyLongIfAbsent(float key,
LongSupplier valueProvider)
Float2LongMapsupplyLongIfAbsent in interface Float2LongMapsupplyLongIfAbsent in class AbstractFloat2LongMapkey - the key that should be computedvalueProvider - the value if not 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 void replaceLongs(FloatLongUnaryOperator mappingFunction)
Float2LongMapreplaceLongs in interface Float2LongMapreplaceLongs in class AbstractFloat2LongMapmappingFunction - operation to replace all valuespublic void replaceLongs(Float2LongMap m)
Float2LongMapreplaceLongs in interface Float2LongMapreplaceLongs in class AbstractFloat2LongMapm - elements that should be replaced.public Float2LongMap copy()
Float2LongMapcopy in interface Float2LongMapcopy in class AbstractFloat2LongMappublic 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>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