public static class Float2ByteMaps.UnmodifyableMap extends AbstractFloat2ByteMap implements Float2ByteMap
AbstractFloat2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ByteMap.BuilderCache, Float2ByteMap.Entry, Float2ByteMap.FastEntrySet, Float2ByteMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(float key,
byte value)
A Helper method to add a primitives together.
|
void |
clear() |
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
|
Float2ByteMap |
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.
|
void |
replaceBytes(Float2ByteMap m)
Type-Specific bulk replace method.
|
void |
replaceBytes(FloatByteUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
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, setDefaultReturnValuecontainsKey, containsValue, isEmpty, size, toStringaddToAll, applyAsByte, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, setDefaultReturnValue, synchronize, synchronize, unmodifiablepublic byte put(float key,
byte value)
Float2ByteMapput in interface Float2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(float key,
byte value)
Float2ByteMapputIfAbsent in interface Float2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(float key,
byte value)
Float2ByteMapaddTo in interface 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 removedsubFrom in interface Float2ByteMapkey - that should be subtract fromvalue - that should be subtractpublic byte remove(float key)
Float2ByteMapremove in interface Float2ByteMapkey - the element that should be removedpublic byte removeOrDefault(float key,
byte defaultValue)
Float2ByteMapremoveOrDefault in interface 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)
Float2ByteMapremove in interface Float2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public byte get(float key)
Float2ByteMapget in interface 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 void replaceBytes(FloatByteUnaryOperator mappingFunction)
Float2ByteMapreplaceBytes in interface Float2ByteMapreplaceBytes in class AbstractFloat2ByteMapmappingFunction - operation to replace all valuespublic void replaceBytes(Float2ByteMap m)
Float2ByteMapreplaceBytes in interface Float2ByteMapreplaceBytes in class AbstractFloat2ByteMapm - elements that should be replaced.public Float2ByteMap copy()
Float2ByteMapcopy in interface Float2ByteMapcopy in class AbstractFloat2ByteMappublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Byte>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>public 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()
Float2ByteMapfloat2ByteEntrySet in interface Float2ByteMap