public static class Float2DoubleMaps.UnmodifyableMap extends AbstractFloat2DoubleMap implements Float2DoubleMap
AbstractFloat2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2DoubleMap.BuilderCache, Float2DoubleMap.Entry, Float2DoubleMap.FastEntrySet, Float2DoubleMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
double |
addTo(float key,
double value)
A Helper method to add a primitives together.
|
void |
clear() |
double |
computeDouble(float key,
FloatDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(float key,
Float2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(float key,
FloatDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
Float2DoubleMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Float2DoubleMap.Entry> |
float2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
double |
get(float key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getOrDefault(float key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
FloatSet |
keySet() |
void |
mergeAllDouble(Float2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(float key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
double |
put(float key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
putIfAbsent(float key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
double |
removeOrDefault(float key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
void |
replaceDoubles(Float2DoubleMap m)
Type-Specific bulk replace method.
|
void |
replaceDoubles(FloatDoubleUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
double |
subFrom(float key,
double value)
A Helper method to subtract from primitive from each other.
|
double |
supplyDoubleIfAbsent(float key,
DoubleSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
DoubleCollection |
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, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, setDefaultReturnValue, synchronize, synchronize, unmodifiablepublic double put(float key,
double value)
Float2DoubleMapput in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(float key,
double value)
Float2DoubleMapputIfAbsent in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public double addTo(float key,
double value)
Float2DoubleMapaddTo in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic double subFrom(float key,
double value)
Float2DoubleMapFloat2DoubleMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Float2DoubleMapkey - that should be subtract fromvalue - that should be subtractpublic double remove(float key)
Float2DoubleMapremove in interface Float2DoubleMapkey - the element that should be removedpublic double removeOrDefault(float key,
double defaultValue)
Float2DoubleMapremoveOrDefault in interface Float2DoubleMapkey - 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,
double value)
Float2DoubleMapremove in interface Float2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public double get(float key)
Float2DoubleMapget in interface Float2DoubleFunctionget in interface Float2DoubleMapkey - the key that is searched forpublic double getOrDefault(float key,
double defaultValue)
Float2DoubleMapgetOrDefault in interface Float2DoubleMapgetOrDefault in class AbstractFloat2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic double computeDouble(float key,
FloatDoubleUnaryOperator mappingFunction)
Float2DoubleMapcomputeDouble in interface Float2DoubleMapcomputeDouble in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(float key,
Float2DoubleFunction mappingFunction)
Float2DoubleMapcomputeDoubleIfAbsent in interface Float2DoubleMapcomputeDoubleIfAbsent in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double computeDoubleIfPresent(float key,
FloatDoubleUnaryOperator mappingFunction)
Float2DoubleMapcomputeDoubleIfPresent in interface Float2DoubleMapcomputeDoubleIfPresent in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double supplyDoubleIfAbsent(float key,
DoubleSupplier valueProvider)
Float2DoubleMapsupplyDoubleIfAbsent in interface Float2DoubleMapsupplyDoubleIfAbsent in class AbstractFloat2DoubleMapkey - the key that should be computedvalueProvider - the value if not presentpublic double mergeDouble(float key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Float2DoubleMapmergeDouble in interface Float2DoubleMapmergeDouble in class AbstractFloat2DoubleMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllDouble(Float2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Float2DoubleMapmergeAllDouble in interface Float2DoubleMapmergeAllDouble in class AbstractFloat2DoubleMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic void replaceDoubles(FloatDoubleUnaryOperator mappingFunction)
Float2DoubleMapreplaceDoubles in interface Float2DoubleMapreplaceDoubles in class AbstractFloat2DoubleMapmappingFunction - operation to replace all valuespublic void replaceDoubles(Float2DoubleMap m)
Float2DoubleMapreplaceDoubles in interface Float2DoubleMapreplaceDoubles in class AbstractFloat2DoubleMapm - elements that should be replaced.public Float2DoubleMap copy()
Float2DoubleMapcopy in interface Float2DoubleMapcopy in class AbstractFloat2DoubleMappublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Double>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Double>public FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Double>keySet in interface Float2DoubleMapkeySet in class AbstractFloat2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Double>values in interface Float2DoubleMapvalues in class AbstractFloat2DoubleMappublic ObjectSet<Float2DoubleMap.Entry> float2DoubleEntrySet()
Float2DoubleMapfloat2DoubleEntrySet in interface Float2DoubleMap