public static class Float2ByteMaps.SynchronizedMap 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 |
addToAll(Float2ByteMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Byte |
compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
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
|
java.lang.Byte |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
java.lang.Byte |
computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(byte value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
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.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Byte> action)
Deprecated.
|
void |
forEach(FloatByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
get(float key)
A Type Specific get method to reduce boxing/unboxing
|
java.lang.Byte |
get(java.lang.Object key)
Deprecated.
|
byte |
getDefaultReturnValue()
Method to see what the default return value is.
|
byte |
getOrDefault(float key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Byte |
getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
Deprecated.
|
FloatSet |
keySet() |
java.lang.Byte |
merge(java.lang.Float key,
java.lang.Byte value,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
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
|
java.lang.Byte |
put(java.lang.Float key,
java.lang.Byte value)
Deprecated.
|
void |
putAll(float[] keys,
byte[] values,
int offset,
int size)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(Float2ByteMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Byte> m) |
void |
putAllIfAbsent(Float2ByteMap m)
Type-Specific bulk put method put elements into the map if not present.
|
byte |
putIfAbsent(float key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Byte |
putIfAbsent(java.lang.Float key,
java.lang.Byte value)
Deprecated.
|
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
|
java.lang.Byte |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
byte |
removeOrDefault(float key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
byte |
replace(float key,
byte value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Byte |
replace(java.lang.Float key,
java.lang.Byte value)
Deprecated.
|
boolean |
replace(float key,
byte oldValue,
byte newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Float key,
java.lang.Byte oldValue,
java.lang.Byte newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
void |
replaceBytes(Float2ByteMap m)
Type-Specific bulk replace method.
|
void |
replaceBytes(FloatByteUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractFloat2ByteMap |
setDefaultReturnValue(byte v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
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() |
entrySet, equals, hashCode, putAllapplyAsByte, builder, entrySet, put, put, putAll, putAll, putAll, synchronize, synchronize, unmodifiablepublic byte getDefaultReturnValue()
Float2ByteMapgetDefaultReturnValue in interface Float2ByteMapgetDefaultReturnValue in class AbstractFloat2ByteMappublic AbstractFloat2ByteMap setDefaultReturnValue(byte v)
Float2ByteMapsetDefaultReturnValue in interface Float2ByteMapsetDefaultReturnValue in class AbstractFloat2ByteMapv - value that should be the default return valuepublic 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 void putAllIfAbsent(Float2ByteMap m)
Float2ByteMapputAllIfAbsent in interface Float2ByteMapputAllIfAbsent in class AbstractFloat2ByteMapm - elements that should be added if not present.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 void addToAll(Float2ByteMap m)
Float2ByteMapaddToAll in interface Float2ByteMapaddToAll in class AbstractFloat2ByteMapm - the values that should be added/insertedpublic void putAll(Float2ByteMap m)
Float2ByteMapputAll in interface Float2ByteMapputAll in class AbstractFloat2ByteMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Byte> m)
putAll in interface java.util.Map<java.lang.Float,java.lang.Byte>putAll in class AbstractFloat2ByteMappublic void putAll(float[] keys,
byte[] values,
int offset,
int size)
Float2ByteMapputAll in interface Float2ByteMapputAll in class AbstractFloat2ByteMapkeys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedMap.putAll(Map)public boolean containsKey(float key)
Float2ByteMapcontainsKey in interface Float2ByteMapcontainsKey in class AbstractFloat2ByteMapkey - element that is searched forpublic boolean containsValue(byte value)
Float2ByteMapcontainsValue in interface Float2ByteMapcontainsValue in class AbstractFloat2ByteMapvalue - element that is searched forpublic byte get(float key)
Float2ByteMapget in interface Float2ByteMapkey - the key that is searched forpublic 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 boolean replace(float key,
byte oldValue,
byte newValue)
Float2ByteMapreplace in interface Float2ByteMapreplace in class AbstractFloat2ByteMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public byte replace(float key,
byte value)
Float2ByteMapreplace in interface Float2ByteMapreplace in class AbstractFloat2ByteMapkey - the element that should be searched forvalue - the value to replace with.public void replaceBytes(Float2ByteMap m)
Float2ByteMapreplaceBytes in interface Float2ByteMapreplaceBytes in class AbstractFloat2ByteMapm - elements that should be replaced.public void replaceBytes(FloatByteUnaryOperator mappingFunction)
Float2ByteMapreplaceBytes in interface Float2ByteMapreplaceBytes in class AbstractFloat2ByteMapmappingFunction - operation to replace all valuespublic 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 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 void forEach(FloatByteConsumer action)
Float2ByteMapforEach in interface Float2ByteMapforEach in class AbstractFloat2ByteMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Byte>size in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>public Float2ByteMap copy()
Float2ByteMapcopy in interface Float2ByteMapcopy in class AbstractFloat2ByteMappublic 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@Deprecated public java.lang.Byte get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,java.lang.Byte>get in interface Float2ByteMapget in class AbstractFloat2ByteMap@Deprecated
public java.lang.Byte getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,java.lang.Byte>getOrDefault in interface Float2ByteMapgetOrDefault in class AbstractFloat2ByteMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Byte>containsValue in interface Float2ByteMapcontainsValue in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Float,java.lang.Byte>containsKey in interface Float2ByteMapcontainsKey in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Byte put(java.lang.Float key,
java.lang.Byte value)
put in interface java.util.Map<java.lang.Float,java.lang.Byte>put in interface Float2ByteMapput in class AbstractFloat2ByteMap@Deprecated public java.lang.Byte remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Byte>remove in interface Float2ByteMapremove in class AbstractFloat2ByteMapkey - the element that should be removedMap.remove(Object)@Deprecated public 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>@Deprecated
public java.lang.Byte putIfAbsent(java.lang.Float key,
java.lang.Byte value)
putIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Byte>putIfAbsent in interface Float2ByteMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,java.lang.Byte>remove in interface Float2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Float key,
java.lang.Byte oldValue,
java.lang.Byte newValue)
replace in interface java.util.Map<java.lang.Float,java.lang.Byte>replace in interface Float2ByteMap@Deprecated
public java.lang.Byte replace(java.lang.Float key,
java.lang.Byte value)
replace in interface java.util.Map<java.lang.Float,java.lang.Byte>replace in interface Float2ByteMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Float,java.lang.Byte>replaceAll in interface Float2ByteMap@Deprecated
public java.lang.Byte compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
compute in interface java.util.Map<java.lang.Float,java.lang.Byte>compute in interface Float2ByteMap@Deprecated
public java.lang.Byte computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Byte> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Byte>computeIfAbsent in interface Float2ByteMap@Deprecated
public java.lang.Byte computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Float,java.lang.Byte>computeIfPresent in interface Float2ByteMap@Deprecated
public java.lang.Byte merge(java.lang.Float key,
java.lang.Byte value,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
merge in interface java.util.Map<java.lang.Float,java.lang.Byte>merge in interface Float2ByteMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Byte> action)
forEach in interface java.util.Map<java.lang.Float,java.lang.Byte>forEach in interface Float2ByteMap