public static class Float2ByteMaps.SingletonMap extends AbstractFloat2ByteMap
AbstractFloat2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ByteMap.Entry, Float2ByteMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(float key,
byte value)
A Helper method to add a primitives together.
|
ObjectSet<Float2ByteMap.Entry> |
float2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
byte |
getByte(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() |
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 |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remFloatOrDefault(float key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
ByteCollection |
values() |
addToAll, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllByte, mergeByte, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBytes, replaceBytes, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic 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 remFloat(float key)
Float2ByteMapkey - the element that should be removedpublic byte remFloatOrDefault(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 getByte(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 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()
Float2ByteMap