public abstract class AbstractFloat2ShortMap extends java.util.AbstractMap<java.lang.Float,java.lang.Short> implements Float2ShortMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractFloat2ShortMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ShortMap.BuilderCache, Float2ShortMap.Entry, Float2ShortMap.FastEntrySet, Float2ShortMap.MapBuilder| Constructor and Description |
|---|
AbstractFloat2ShortMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Float2ShortMap m)
A Helper method to bulk add primitives together.
|
short |
computeShort(float key,
FloatShortUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
short |
computeShortIfAbsent(float key,
Float2ShortFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
short |
computeShortIfPresent(float key,
FloatShortUnaryOperator 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(short value)
Type Specific method to reduce boxing/unboxing of values
|
Float2ShortMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Short>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(FloatShortConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Short |
get(java.lang.Object key) |
short |
getDefaultReturnValue()
Method to see what the default return value is.
|
short |
getOrDefault(float key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Short |
getOrDefault(java.lang.Object key,
java.lang.Short defaultValue) |
int |
hashCode() |
FloatSet |
keySet() |
void |
mergeAllShort(Float2ShortMap m,
ShortShortUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
short |
mergeShort(float key,
short value,
ShortShortUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
java.lang.Short |
put(java.lang.Float key,
java.lang.Short value)
Deprecated.
|
void |
putAll(float[] keys,
short[] 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.Float[] keys,
java.lang.Short[] 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(Float2ShortMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Short> m) |
void |
putAllIfAbsent(Float2ShortMap m)
Type-Specific bulk put method put elements into the map if not present.
|
java.lang.Short |
remove(java.lang.Object key) |
short |
replace(float key,
short value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
short oldValue,
short newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceShorts(Float2ShortMap m)
Type-Specific bulk replace method.
|
void |
replaceShorts(FloatShortUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractFloat2ShortMap |
setDefaultReturnValue(short v)
Method to define the default return value if a requested key isn't present
|
short |
supplyShortIfAbsent(float key,
ShortSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
ShortCollection |
values() |
clear, containsKey, containsValue, isEmpty, size, toStringaddTo, applyAsShort, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, float2ShortEntrySet, forEach, get, merge, put, put, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrom, synchronize, synchronize, unmodifiablepublic short getDefaultReturnValue()
Float2ShortMapgetDefaultReturnValue in interface Float2ShortMappublic AbstractFloat2ShortMap setDefaultReturnValue(short v)
Float2ShortMapsetDefaultReturnValue in interface Float2ShortMapv - value that should be the default return valuepublic Float2ShortMap copy()
Float2ShortMapcopy in interface Float2ShortMap@Deprecated
public java.lang.Short put(java.lang.Float key,
java.lang.Short value)
put in interface java.util.Map<java.lang.Float,java.lang.Short>put in interface Float2ShortMapput in class java.util.AbstractMap<java.lang.Float,java.lang.Short>public void addToAll(Float2ShortMap m)
Float2ShortMapaddToAll in interface Float2ShortMapm - the values that should be added/insertedpublic void putAll(Float2ShortMap m)
Float2ShortMapputAll in interface Float2ShortMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Short> m)
putAll in interface java.util.Map<java.lang.Float,java.lang.Short>putAll in class java.util.AbstractMap<java.lang.Float,java.lang.Short>public void putAll(float[] keys,
short[] values,
int offset,
int size)
Float2ShortMapputAll in interface Float2ShortMapkeys - 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.Float[] keys,
java.lang.Short[] values,
int offset,
int size)
Float2ShortMapputAll in interface Float2ShortMapkeys - 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(Float2ShortMap m)
Float2ShortMapputAllIfAbsent in interface Float2ShortMapm - elements that should be added if not present.public boolean containsKey(float key)
Float2ShortMapcontainsKey in interface Float2ShortMapkey - element that is searched forpublic boolean containsValue(short value)
Float2ShortMapcontainsValue in interface Float2ShortMapvalue - element that is searched forpublic boolean replace(float key,
short oldValue,
short newValue)
Float2ShortMapreplace in interface Float2ShortMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public short replace(float key,
short value)
Float2ShortMapreplace in interface Float2ShortMapkey - the element that should be searched forvalue - the value to replace with.public void replaceShorts(Float2ShortMap m)
Float2ShortMapreplaceShorts in interface Float2ShortMapm - elements that should be replaced.public void replaceShorts(FloatShortUnaryOperator mappingFunction)
Float2ShortMapreplaceShorts in interface Float2ShortMapmappingFunction - operation to replace all valuespublic short computeShort(float key,
FloatShortUnaryOperator mappingFunction)
Float2ShortMapcomputeShort in interface Float2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic short computeShortIfAbsent(float key,
Float2ShortFunction mappingFunction)
Float2ShortMapcomputeShortIfAbsent in interface Float2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic short supplyShortIfAbsent(float key,
ShortSupplier valueProvider)
Float2ShortMapsupplyShortIfAbsent in interface Float2ShortMapkey - the key that should be computedvalueProvider - the value if not presentpublic short computeShortIfPresent(float key,
FloatShortUnaryOperator mappingFunction)
Float2ShortMapcomputeShortIfPresent in interface Float2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic short mergeShort(float key,
short value,
ShortShortUnaryOperator mappingFunction)
Float2ShortMapmergeShort in interface Float2ShortMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllShort(Float2ShortMap m, ShortShortUnaryOperator mappingFunction)
Float2ShortMapmergeAllShort in interface Float2ShortMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic java.lang.Short get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,java.lang.Short>get in interface Float2ShortMapget in class java.util.AbstractMap<java.lang.Float,java.lang.Short>public java.lang.Short getOrDefault(java.lang.Object key,
java.lang.Short defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,java.lang.Short>getOrDefault in interface Float2ShortMappublic short getOrDefault(float key,
short defaultValue)
Float2ShortMapgetOrDefault in interface Float2ShortMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic java.lang.Short remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Short>remove in interface Float2ShortMapremove in class java.util.AbstractMap<java.lang.Float,java.lang.Short>key - the element that should be removedMap.remove(Object)public void forEach(FloatShortConsumer action)
Float2ShortMapforEach in interface Float2ShortMapaction - processor of the values that are iterator overpublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Short>keySet in interface Float2ShortMapkeySet in class java.util.AbstractMap<java.lang.Float,java.lang.Short>public ShortCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Short>values in interface Float2ShortMapvalues in class java.util.AbstractMap<java.lang.Float,java.lang.Short>public ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Short>> entrySet()
entrySet in interface java.util.Map<java.lang.Float,java.lang.Short>entrySet in interface Float2ShortMapentrySet in class java.util.AbstractMap<java.lang.Float,java.lang.Short>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Float,java.lang.Short>equals in class java.util.AbstractMap<java.lang.Float,java.lang.Short>public int hashCode()
hashCode in interface java.util.Map<java.lang.Float,java.lang.Short>hashCode in class java.util.AbstractMap<java.lang.Float,java.lang.Short>