public static class Byte2FloatMaps.SynchronizedMap extends AbstractByte2FloatMap implements Byte2FloatMap
AbstractByte2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2FloatMap.BuilderCache, Byte2FloatMap.Entry, Byte2FloatMap.FastEntrySet, Byte2FloatMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
float |
addTo(byte key,
float value)
A Helper method to add a primitives together.
|
void |
addToAll(Byte2FloatMap m)
A Helper method to bulk add primitives together.
|
ObjectSet<Byte2FloatMap.Entry> |
byte2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear()
Deprecated.
|
java.lang.Float |
compute(java.lang.Byte key,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
float |
computeFloat(byte key,
ByteFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfAbsent(byte key,
Byte2FloatFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfPresent(byte key,
ByteFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Float |
computeIfAbsent(java.lang.Byte key,
java.util.function.Function<? super java.lang.Byte,? extends java.lang.Float> mappingFunction)
Deprecated.
|
java.lang.Float |
computeIfPresent(java.lang.Byte key,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
boolean |
containsKey(byte key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(float value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Byte2FloatMap |
copy()
A Function that does a shallow clone of the Map itself.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Byte,? super java.lang.Float> action)
Deprecated.
|
void |
forEach(ByteFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
get(byte key)
A Type Specific get method to reduce boxing/unboxing
|
java.lang.Float |
get(java.lang.Object key)
Deprecated.
|
float |
getDefaultReturnValue()
Method to see what the default return value is.
|
float |
getOrDefault(byte key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Float |
getOrDefault(java.lang.Object key,
java.lang.Float defaultValue)
Deprecated.
|
ByteSet |
keySet() |
java.lang.Float |
merge(java.lang.Byte key,
java.lang.Float value,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
void |
mergeAllFloat(Byte2FloatMap m,
FloatFloatUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
float |
mergeFloat(byte key,
float value,
FloatFloatUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
float |
put(byte key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Float |
put(java.lang.Byte key,
java.lang.Float value)
Deprecated.
|
void |
putAll(byte[] keys,
float[] 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(Byte2FloatMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> m) |
void |
putAllIfAbsent(Byte2FloatMap m)
Type-Specific bulk put method put elements into the map if not present.
|
float |
putIfAbsent(byte key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Float |
putIfAbsent(java.lang.Byte key,
java.lang.Float value)
Deprecated.
|
float |
remove(byte key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(byte key,
float value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Float |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
float |
removeOrDefault(byte key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
float |
replace(byte key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Float |
replace(java.lang.Byte key,
java.lang.Float value)
Deprecated.
|
boolean |
replace(byte key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Byte key,
java.lang.Float oldValue,
java.lang.Float newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
void |
replaceFloats(Byte2FloatMap m)
Type-Specific bulk replace method.
|
void |
replaceFloats(ByteFloatUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractByte2FloatMap |
setDefaultReturnValue(float v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
float |
subFrom(byte key,
float value)
A Helper method to subtract from primitive from each other.
|
float |
supplyFloatIfAbsent(byte key,
FloatSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
FloatCollection |
values() |
entrySet, equals, hashCode, putAllbuilder, entrySet, putAll, putAll, putAll, synchronize, synchronize, unmodifiablepublic float getDefaultReturnValue()
Byte2FloatMapgetDefaultReturnValue in interface Byte2FloatMapgetDefaultReturnValue in class AbstractByte2FloatMappublic AbstractByte2FloatMap setDefaultReturnValue(float v)
Byte2FloatMapsetDefaultReturnValue in interface Byte2FloatMapsetDefaultReturnValue in class AbstractByte2FloatMapv - value that should be the default return valuepublic float put(byte key,
float value)
Byte2FloatMapput in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(byte key,
float value)
Byte2FloatMapputIfAbsent in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Byte2FloatMap m)
Byte2FloatMapputAllIfAbsent in interface Byte2FloatMapputAllIfAbsent in class AbstractByte2FloatMapm - elements that should be added if not present.public float addTo(byte key,
float value)
Byte2FloatMapaddTo in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float subFrom(byte key,
float value)
Byte2FloatMapByte2FloatMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Byte2FloatMapkey - that should be subtract fromvalue - that should be subtractpublic void addToAll(Byte2FloatMap m)
Byte2FloatMapaddToAll in interface Byte2FloatMapaddToAll in class AbstractByte2FloatMapm - the values that should be added/insertedpublic void putAll(Byte2FloatMap m)
Byte2FloatMapputAll in interface Byte2FloatMapputAll in class AbstractByte2FloatMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> m)
putAll in interface java.util.Map<java.lang.Byte,java.lang.Float>putAll in class AbstractByte2FloatMappublic void putAll(byte[] keys,
float[] values,
int offset,
int size)
Byte2FloatMapputAll in interface Byte2FloatMapputAll in class AbstractByte2FloatMapkeys - 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(byte key)
Byte2FloatMapcontainsKey in interface Byte2FloatMapcontainsKey in class AbstractByte2FloatMapkey - element that is searched forpublic boolean containsValue(float value)
Byte2FloatMapcontainsValue in interface Byte2FloatMapcontainsValue in class AbstractByte2FloatMapvalue - element that is searched forpublic float get(byte key)
Byte2FloatMapget in interface Byte2FloatFunctionget in interface Byte2FloatMapkey - the key that is searched forpublic float remove(byte key)
Byte2FloatMapremove in interface Byte2FloatMapkey - the element that should be removedpublic float removeOrDefault(byte key,
float defaultValue)
Byte2FloatMapremoveOrDefault in interface Byte2FloatMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(byte key,
float value)
Byte2FloatMapremove in interface Byte2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(byte key,
float oldValue,
float newValue)
Byte2FloatMapreplace in interface Byte2FloatMapreplace in class AbstractByte2FloatMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public float replace(byte key,
float value)
Byte2FloatMapreplace in interface Byte2FloatMapreplace in class AbstractByte2FloatMapkey - the element that should be searched forvalue - the value to replace with.public void replaceFloats(Byte2FloatMap m)
Byte2FloatMapreplaceFloats in interface Byte2FloatMapreplaceFloats in class AbstractByte2FloatMapm - elements that should be replaced.public void replaceFloats(ByteFloatUnaryOperator mappingFunction)
Byte2FloatMapreplaceFloats in interface Byte2FloatMapreplaceFloats in class AbstractByte2FloatMapmappingFunction - operation to replace all valuespublic float computeFloat(byte key,
ByteFloatUnaryOperator mappingFunction)
Byte2FloatMapcomputeFloat in interface Byte2FloatMapcomputeFloat in class AbstractByte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(byte key,
Byte2FloatFunction mappingFunction)
Byte2FloatMapcomputeFloatIfAbsent in interface Byte2FloatMapcomputeFloatIfAbsent in class AbstractByte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float computeFloatIfPresent(byte key,
ByteFloatUnaryOperator mappingFunction)
Byte2FloatMapcomputeFloatIfPresent in interface Byte2FloatMapcomputeFloatIfPresent in class AbstractByte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float supplyFloatIfAbsent(byte key,
FloatSupplier valueProvider)
Byte2FloatMapsupplyFloatIfAbsent in interface Byte2FloatMapsupplyFloatIfAbsent in class AbstractByte2FloatMapkey - the key that should be computedvalueProvider - the value if not presentpublic float mergeFloat(byte key,
float value,
FloatFloatUnaryOperator mappingFunction)
Byte2FloatMapmergeFloat in interface Byte2FloatMapmergeFloat in class AbstractByte2FloatMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllFloat(Byte2FloatMap m, FloatFloatUnaryOperator mappingFunction)
Byte2FloatMapmergeAllFloat in interface Byte2FloatMapmergeAllFloat in class AbstractByte2FloatMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic float getOrDefault(byte key,
float defaultValue)
Byte2FloatMapgetOrDefault in interface Byte2FloatMapgetOrDefault in class AbstractByte2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(ByteFloatConsumer action)
Byte2FloatMapforEach in interface Byte2FloatMapforEach in class AbstractByte2FloatMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Byte,java.lang.Float>size in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>public Byte2FloatMap copy()
Byte2FloatMapcopy in interface Byte2FloatMapcopy in class AbstractByte2FloatMappublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Float>keySet in interface Byte2FloatMapkeySet in class AbstractByte2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Float>values in interface Byte2FloatMapvalues in class AbstractByte2FloatMappublic ObjectSet<Byte2FloatMap.Entry> byte2FloatEntrySet()
Byte2FloatMapbyte2FloatEntrySet in interface Byte2FloatMap@Deprecated public java.lang.Float get(java.lang.Object key)
get in interface java.util.Map<java.lang.Byte,java.lang.Float>get in interface Byte2FloatMapget in class AbstractByte2FloatMap@Deprecated
public java.lang.Float getOrDefault(java.lang.Object key,
java.lang.Float defaultValue)
getOrDefault in interface java.util.Map<java.lang.Byte,java.lang.Float>getOrDefault in interface Byte2FloatMapgetOrDefault in class AbstractByte2FloatMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Byte,java.lang.Float>containsValue in interface Byte2FloatMapcontainsValue in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Byte,java.lang.Float>containsKey in interface Byte2FloatMapcontainsKey in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Float put(java.lang.Byte key,
java.lang.Float value)
put in interface java.util.Map<java.lang.Byte,java.lang.Float>put in interface Byte2FloatMapput in class AbstractByte2FloatMap@Deprecated public java.lang.Float remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Byte,java.lang.Float>remove in interface Byte2FloatMapremove in class AbstractByte2FloatMapkey - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Float>clear in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>@Deprecated
public java.lang.Float putIfAbsent(java.lang.Byte key,
java.lang.Float value)
putIfAbsent in interface java.util.Map<java.lang.Byte,java.lang.Float>putIfAbsent in interface Byte2FloatMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Byte,java.lang.Float>remove in interface Byte2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Byte key,
java.lang.Float oldValue,
java.lang.Float newValue)
replace in interface java.util.Map<java.lang.Byte,java.lang.Float>replace in interface Byte2FloatMap@Deprecated
public java.lang.Float replace(java.lang.Byte key,
java.lang.Float value)
replace in interface java.util.Map<java.lang.Byte,java.lang.Float>replace in interface Byte2FloatMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Byte,java.lang.Float>replaceAll in interface Byte2FloatMap@Deprecated
public java.lang.Float compute(java.lang.Byte key,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
compute in interface java.util.Map<java.lang.Byte,java.lang.Float>compute in interface Byte2FloatMap@Deprecated
public java.lang.Float computeIfAbsent(java.lang.Byte key,
java.util.function.Function<? super java.lang.Byte,? extends java.lang.Float> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Byte,java.lang.Float>computeIfAbsent in interface Byte2FloatMap@Deprecated
public java.lang.Float computeIfPresent(java.lang.Byte key,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Byte,java.lang.Float>computeIfPresent in interface Byte2FloatMap@Deprecated
public java.lang.Float merge(java.lang.Byte key,
java.lang.Float value,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
merge in interface java.util.Map<java.lang.Byte,java.lang.Float>merge in interface Byte2FloatMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Byte,? super java.lang.Float> action)
forEach in interface java.util.Map<java.lang.Byte,java.lang.Float>forEach in interface Byte2FloatMap