public static class Float2DoubleMaps.EmptyMap extends AbstractFloat2DoubleMap
AbstractFloat2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2DoubleMap.BuilderCache, Float2DoubleMap.Entry, Float2DoubleMap.FastEntrySet, Float2DoubleMap.MapBuilder| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
double |
addTo(float key,
double value)
A Helper method to add a primitives together.
|
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
|
Float2DoubleMaps.EmptyMap |
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.
|
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, replaceDoubles, replaceDoubles, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, size, toStringapplyAsDouble, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, put, putAll, putAll, putIfAbsent, remove, replace, replace, replaceAll, synchronize, synchronize, unmodifiablepublic double put(float key,
double value)
Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(float key,
double value)
Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public double addTo(float key,
double value)
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 removedkey - that should be subtract fromvalue - that should be subtractpublic double remove(float key)
Float2DoubleMapkey - the element that should be removedpublic double removeOrDefault(float key,
double defaultValue)
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)
Float2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public double get(float key)
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 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()
Float2DoubleMappublic Float2DoubleMaps.EmptyMap copy()
Float2DoubleMapcopy in interface Float2DoubleMapcopy in class AbstractFloat2DoubleMap