public abstract class AbstractByte2FloatMap extends java.util.AbstractMap<java.lang.Byte,java.lang.Float> implements Byte2FloatMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractByte2FloatMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2FloatMap.BuilderCache, Byte2FloatMap.Entry, Byte2FloatMap.FastEntrySet, Byte2FloatMap.MapBuilder| Constructor and Description |
|---|
AbstractByte2FloatMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Byte2FloatMap m)
A Helper method to bulk add primitives together.
|
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
|
boolean |
containsKey(byte key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(float value)
Type Specific method to reduce boxing/unboxing of values
|
Byte2FloatMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Byte,java.lang.Float>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(ByteFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Float |
get(java.lang.Object key) |
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) |
int |
hashCode() |
ByteSet |
keySet() |
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
|
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(java.lang.Byte[] keys,
java.lang.Float[] values,
int offset,
int size)
Type Specific Object 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.
|
java.lang.Float |
remove(java.lang.Object key) |
float |
replace(byte key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(byte key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
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
|
float |
supplyFloatIfAbsent(byte key,
FloatSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
FloatCollection |
values() |
clear, containsKey, containsValue, isEmpty, size, toStringaddTo, builder, byte2FloatEntrySet, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, merge, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrom, synchronize, synchronize, unmodifiablepublic float getDefaultReturnValue()
Byte2FloatMapgetDefaultReturnValue in interface Byte2FloatMappublic AbstractByte2FloatMap setDefaultReturnValue(float v)
Byte2FloatMapsetDefaultReturnValue in interface Byte2FloatMapv - value that should be the default return valuepublic Byte2FloatMap copy()
Byte2FloatMapcopy in interface Byte2FloatMap@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 java.util.AbstractMap<java.lang.Byte,java.lang.Float>public void addToAll(Byte2FloatMap m)
Byte2FloatMapaddToAll in interface Byte2FloatMapm - the values that should be added/insertedpublic void putAll(Byte2FloatMap m)
Byte2FloatMapputAll in interface Byte2FloatMapm - 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 java.util.AbstractMap<java.lang.Byte,java.lang.Float>public void putAll(byte[] keys,
float[] values,
int offset,
int size)
Byte2FloatMapputAll in interface Byte2FloatMapkeys - 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 void putAll(java.lang.Byte[] keys,
java.lang.Float[] values,
int offset,
int size)
Byte2FloatMapputAll in interface Byte2FloatMapkeys - 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 void putAllIfAbsent(Byte2FloatMap m)
Byte2FloatMapputAllIfAbsent in interface Byte2FloatMapm - elements that should be added if not present.public boolean containsKey(byte key)
Byte2FloatMapcontainsKey in interface Byte2FloatMapkey - element that is searched forpublic boolean containsValue(float value)
Byte2FloatMapcontainsValue in interface Byte2FloatMapvalue - element that is searched forpublic boolean replace(byte key,
float oldValue,
float newValue)
Byte2FloatMapreplace in interface Byte2FloatMapkey - 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 Byte2FloatMapkey - the element that should be searched forvalue - the value to replace with.public void replaceFloats(Byte2FloatMap m)
Byte2FloatMapreplaceFloats in interface Byte2FloatMapm - elements that should be replaced.public void replaceFloats(ByteFloatUnaryOperator mappingFunction)
Byte2FloatMapreplaceFloats in interface Byte2FloatMapmappingFunction - operation to replace all valuespublic float computeFloat(byte key,
ByteFloatUnaryOperator mappingFunction)
Byte2FloatMapcomputeFloat in interface Byte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(byte key,
Byte2FloatFunction mappingFunction)
Byte2FloatMapcomputeFloatIfAbsent in interface Byte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float supplyFloatIfAbsent(byte key,
FloatSupplier valueProvider)
Byte2FloatMapsupplyFloatIfAbsent in interface Byte2FloatMapkey - the key that should be computedvalueProvider - the value if not presentpublic float computeFloatIfPresent(byte key,
ByteFloatUnaryOperator mappingFunction)
Byte2FloatMapcomputeFloatIfPresent in interface Byte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float mergeFloat(byte key,
float value,
FloatFloatUnaryOperator mappingFunction)
Byte2FloatMapmergeFloat in interface Byte2FloatMapkey - 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 Byte2FloatMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic 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 java.util.AbstractMap<java.lang.Byte,java.lang.Float>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 Byte2FloatMappublic float getOrDefault(byte key,
float defaultValue)
Byte2FloatMapgetOrDefault in interface Byte2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic 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 java.util.AbstractMap<java.lang.Byte,java.lang.Float>key - the element that should be removedMap.remove(Object)public void forEach(ByteFloatConsumer action)
Byte2FloatMapforEach in interface Byte2FloatMapaction - processor of the values that are iterator overpublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Float>keySet in interface Byte2FloatMapkeySet in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>public FloatCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Float>values in interface Byte2FloatMapvalues in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>public ObjectSet<java.util.Map.Entry<java.lang.Byte,java.lang.Float>> entrySet()
entrySet in interface java.util.Map<java.lang.Byte,java.lang.Float>entrySet in interface Byte2FloatMapentrySet in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Byte,java.lang.Float>equals in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>public int hashCode()
hashCode in interface java.util.Map<java.lang.Byte,java.lang.Float>hashCode in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>