public static class Float2CharMaps.EmptyMap extends AbstractFloat2CharMap
AbstractFloat2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2CharMap.BuilderCache, Float2CharMap.Entry, Float2CharMap.FastEntrySet, Float2CharMap.MapBuilder| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
char |
addTo(float key,
char value)
A Helper method to add a primitives together.
|
char |
computeChar(float key,
FloatCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(float key,
Float2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(float key,
FloatCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
Float2CharMaps.EmptyMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Float2CharMap.Entry> |
float2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
get(float key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(float key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
FloatSet |
keySet() |
void |
mergeAllChar(Float2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(float key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
char |
put(float key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(float key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
char |
removeOrDefault(float key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
char |
subFrom(float key,
char value)
A Helper method to subtract from primitive from each other.
|
char |
supplyCharIfAbsent(float key,
CharSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
CharCollection |
values() |
addToAll, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, replaceChars, replaceChars, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, size, toStringapplyAsChar, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, put, putAll, putAll, putIfAbsent, remove, replace, replace, replaceAll, synchronize, synchronize, unmodifiablepublic char put(float key,
char value)
Float2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(float key,
char value)
Float2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(float key,
char value)
Float2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char subFrom(float key,
char value)
Float2CharMapFloat2CharMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedkey - that should be subtract fromvalue - that should be subtractpublic char remove(float key)
Float2CharMapkey - the element that should be removedpublic char removeOrDefault(float key,
char defaultValue)
Float2CharMapkey - 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,
char value)
Float2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char get(float key)
Float2CharMapkey - the key that is searched forpublic char getOrDefault(float key,
char defaultValue)
Float2CharMapgetOrDefault in interface Float2CharMapgetOrDefault in class AbstractFloat2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic char computeChar(float key,
FloatCharUnaryOperator mappingFunction)
Float2CharMapcomputeChar in interface Float2CharMapcomputeChar in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(float key,
Float2CharFunction mappingFunction)
Float2CharMapcomputeCharIfAbsent in interface Float2CharMapcomputeCharIfAbsent in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char computeCharIfPresent(float key,
FloatCharUnaryOperator mappingFunction)
Float2CharMapcomputeCharIfPresent in interface Float2CharMapcomputeCharIfPresent in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char supplyCharIfAbsent(float key,
CharSupplier valueProvider)
Float2CharMapsupplyCharIfAbsent in interface Float2CharMapsupplyCharIfAbsent in class AbstractFloat2CharMapkey - the key that should be computedvalueProvider - the value if not presentpublic char mergeChar(float key,
char value,
CharCharUnaryOperator mappingFunction)
Float2CharMapmergeChar in interface Float2CharMapmergeChar in class AbstractFloat2CharMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllChar(Float2CharMap m, CharCharUnaryOperator mappingFunction)
Float2CharMapmergeAllChar in interface Float2CharMapmergeAllChar in class AbstractFloat2CharMapm - 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.Character>keySet in interface Float2CharMapkeySet in class AbstractFloat2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Character>values in interface Float2CharMapvalues in class AbstractFloat2CharMappublic ObjectSet<Float2CharMap.Entry> float2CharEntrySet()
Float2CharMappublic Float2CharMaps.EmptyMap copy()
Float2CharMapcopy in interface Float2CharMapcopy in class AbstractFloat2CharMap