public abstract class AbstractFloat2ByteMap extends java.util.AbstractMap<java.lang.Float,java.lang.Byte> implements Float2ByteMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractFloat2ByteMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ByteMap.Entry, Float2ByteMap.FastEntrySet| Constructor and Description |
|---|
AbstractFloat2ByteMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Float2ByteMap m)
A Helper method to bulk add primitives together.
|
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
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(byte value)
Type Specific method to reduce boxing/unboxing of values
|
ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Byte>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(FloatByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Byte |
get(java.lang.Object key) |
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) |
int |
hashCode() |
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
|
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 |
replace(float key,
byte value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
byte oldValue,
byte newValue)
A Type Specific replace method to replace an existing value
|
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
|
ByteCollection |
values() |
clear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddTo, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, float2ByteEntrySet, forEach, getByte, merge, put, put, putAll, putIfAbsent, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, replaceAllpublic byte getDefaultReturnValue()
Float2ByteMapgetDefaultReturnValue in interface Float2ByteMappublic AbstractFloat2ByteMap setDefaultReturnValue(byte v)
Float2ByteMapsetDefaultReturnValue in interface Float2ByteMapv - value that should be the default return valuepublic void addToAll(Float2ByteMap m)
Float2ByteMapaddToAll in interface Float2ByteMapm - the values that should be added/insertedpublic void putAll(Float2ByteMap m)
Float2ByteMapputAll in interface Float2ByteMapm - 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 java.util.AbstractMap<java.lang.Float,java.lang.Byte>public void putAll(float[] keys,
byte[] values,
int offset,
int size)
Float2ByteMapputAll in interface Float2ByteMapkeys - 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(Float2ByteMap m)
Float2ByteMapputAllIfAbsent in interface Float2ByteMapm - elements that should be added if not present.public boolean containsKey(float key)
Float2ByteMapcontainsKey in interface Float2ByteMapkey - element that is searched forpublic boolean containsValue(byte value)
Float2ByteMapcontainsValue in interface Float2ByteMapvalue - element that is searched forpublic boolean replace(float key,
byte oldValue,
byte newValue)
Float2ByteMapreplace in interface Float2ByteMapkey - 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 Float2ByteMapkey - the element that should be searched forvalue - the value to replace with.public void replaceBytes(Float2ByteMap m)
Float2ByteMapreplaceBytes in interface Float2ByteMapm - elements that should be replaced.public void replaceBytes(FloatByteUnaryOperator mappingFunction)
Float2ByteMapreplaceBytes in interface Float2ByteMapmappingFunction - operation to replace all valuespublic byte computeByte(float key,
FloatByteUnaryOperator mappingFunction)
Float2ByteMapcomputeByte in interface Float2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic byte computeByteIfAbsent(float key,
Float2ByteFunction mappingFunction)
Float2ByteMapcomputeByteIfAbsent in interface Float2ByteMapkey - 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 Float2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic byte mergeByte(float key,
byte value,
ByteByteUnaryOperator mappingFunction)
Float2ByteMapmergeByte in interface Float2ByteMapkey - 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 Float2ByteMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic 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 java.util.AbstractMap<java.lang.Float,java.lang.Byte>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 Float2ByteMappublic byte getOrDefault(float key,
byte defaultValue)
Float2ByteMapgetOrDefault in interface Float2ByteMapkey - 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 Float2ByteMapaction - processor of the values that are iterator overpublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Byte>keySet in interface Float2ByteMapkeySet in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>public ByteCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Byte>values in interface Float2ByteMapvalues in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>public ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Byte>> entrySet()
entrySet in interface java.util.Map<java.lang.Float,java.lang.Byte>entrySet in interface Float2ByteMapentrySet in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Float,java.lang.Byte>equals in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>public int hashCode()
hashCode in interface java.util.Map<java.lang.Float,java.lang.Byte>hashCode in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>