public static class Float2ByteMaps.EmptyMap extends AbstractFloat2ByteMap
AbstractFloat2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ByteMap.BuilderCache, Float2ByteMap.Entry, Float2ByteMap.FastEntrySet, Float2ByteMap.MapBuilder| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(float key,
byte value)
A Helper method to add a primitives together.
|
byte |
computeByte(float key,
FloatByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfAbsent(float key,
Float2ByteFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfPresent(float key,
FloatByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
Float2ByteMaps.EmptyMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Float2ByteMap.Entry> |
float2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
byte |
get(float key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getOrDefault(float key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
FloatSet |
keySet() |
void |
mergeAllByte(Float2ByteMap m,
ByteByteUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
byte |
mergeByte(float key,
byte value,
ByteByteUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
byte |
put(float key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
putIfAbsent(float key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
byte |
removeOrDefault(float key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
byte |
subFrom(float key,
byte value)
A Helper method to subtract from primitive from each other.
|
byte |
supplyByteIfAbsent(float key,
ByteSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
ByteCollection |
values() |
addToAll, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, replaceBytes, replaceBytes, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, size, toStringapplyAsByte, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, put, putAll, putAll, putIfAbsent, remove, replace, replace, replaceAll, synchronize, synchronize, unmodifiablepublic byte put(float key,
byte value)
Float2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(float key,
byte value)
Float2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(float key,
byte value)
Float2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte subFrom(float key,
byte value)
Float2ByteMapFloat2ByteMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedkey - that should be subtract fromvalue - that should be subtractpublic byte remove(float key)
Float2ByteMapkey - the element that should be removedpublic byte removeOrDefault(float key,
byte defaultValue)
Float2ByteMapkey - 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,
byte value)
Float2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public byte get(float key)
Float2ByteMapkey - the key that is searched forpublic byte getOrDefault(float key,
byte defaultValue)
Float2ByteMapgetOrDefault in interface Float2ByteMapgetOrDefault in class AbstractFloat2ByteMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic byte computeByte(float key,
FloatByteUnaryOperator mappingFunction)
Float2ByteMapcomputeByte in interface Float2ByteMapcomputeByte in class AbstractFloat2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic byte computeByteIfAbsent(float key,
Float2ByteFunction mappingFunction)
Float2ByteMapcomputeByteIfAbsent in interface Float2ByteMapcomputeByteIfAbsent in class AbstractFloat2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic byte computeByteIfPresent(float key,
FloatByteUnaryOperator mappingFunction)
Float2ByteMapcomputeByteIfPresent in interface Float2ByteMapcomputeByteIfPresent in class AbstractFloat2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic byte supplyByteIfAbsent(float key,
ByteSupplier valueProvider)
Float2ByteMapsupplyByteIfAbsent in interface Float2ByteMapsupplyByteIfAbsent in class AbstractFloat2ByteMapkey - the key that should be computedvalueProvider - the value if not presentpublic byte mergeByte(float key,
byte value,
ByteByteUnaryOperator mappingFunction)
Float2ByteMapmergeByte in interface Float2ByteMapmergeByte in class AbstractFloat2ByteMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllByte(Float2ByteMap m, ByteByteUnaryOperator mappingFunction)
Float2ByteMapmergeAllByte in interface Float2ByteMapmergeAllByte in class AbstractFloat2ByteMapm - 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.Byte>keySet in interface Float2ByteMapkeySet in class AbstractFloat2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Byte>values in interface Float2ByteMapvalues in class AbstractFloat2ByteMappublic ObjectSet<Float2ByteMap.Entry> float2ByteEntrySet()
Float2ByteMappublic Float2ByteMaps.EmptyMap copy()
Float2ByteMapcopy in interface Float2ByteMapcopy in class AbstractFloat2ByteMap