public static class Float2ShortMaps.SynchronizedMap extends AbstractFloat2ShortMap implements Float2ShortMap
AbstractFloat2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ShortMap.Entry, Float2ShortMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
short |
addTo(float key,
short value)
A Helper method to add a primitives together.
|
void |
addToAll(Float2ShortMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Short |
compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
java.lang.Short |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Short> mappingFunction)
Deprecated.
|
java.lang.Short |
computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
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 |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
boolean |
containsValue(short value)
Type Specific method to reduce boxing/unboxing of values
|
ObjectSet<Float2ShortMap.Entry> |
float2ShortEntrySet()
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.Short> action)
Deprecated.
|
void |
forEach(FloatShortConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Short |
get(java.lang.Object key)
Deprecated.
|
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)
Deprecated.
|
short |
getShort(float key)
A Type Specific get method to reduce boxing/unboxing
|
FloatSet |
keySet() |
java.lang.Short |
merge(java.lang.Float key,
java.lang.Short value,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
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
|
short |
put(float key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
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(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.
|
short |
putIfAbsent(float key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Short |
putIfAbsent(java.lang.Float key,
java.lang.Short value)
Deprecated.
|
short |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
short |
remFloatOrDefault(float key,
short defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
short value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Short |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
short |
replace(float key,
short value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Short |
replace(java.lang.Float key,
java.lang.Short value)
Deprecated.
|
boolean |
replace(float key,
short oldValue,
short newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Float key,
java.lang.Short oldValue,
java.lang.Short newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
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
|
int |
size() |
ShortCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic short getDefaultReturnValue()
Float2ShortMapgetDefaultReturnValue in interface Float2ShortMapgetDefaultReturnValue in class AbstractFloat2ShortMappublic AbstractFloat2ShortMap setDefaultReturnValue(short v)
Float2ShortMapsetDefaultReturnValue in interface Float2ShortMapsetDefaultReturnValue in class AbstractFloat2ShortMapv - value that should be the default return valuepublic short put(float key,
short value)
Float2ShortMapput in interface Float2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public short putIfAbsent(float key,
short value)
Float2ShortMapputIfAbsent in interface Float2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Float2ShortMap m)
Float2ShortMapputAllIfAbsent in interface Float2ShortMapputAllIfAbsent in class AbstractFloat2ShortMapm - elements that should be added if not present.public short addTo(float key,
short value)
Float2ShortMapaddTo in interface Float2ShortMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Float2ShortMap m)
Float2ShortMapaddToAll in interface Float2ShortMapaddToAll in class AbstractFloat2ShortMapm - the values that should be added/insertedpublic void putAll(Float2ShortMap m)
Float2ShortMapputAll in interface Float2ShortMapputAll in class AbstractFloat2ShortMapm - 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 AbstractFloat2ShortMappublic void putAll(float[] keys,
short[] values,
int offset,
int size)
Float2ShortMapputAll in interface Float2ShortMapputAll in class AbstractFloat2ShortMapkeys - 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)
Float2ShortMapcontainsKey in interface Float2ShortMapcontainsKey in class AbstractFloat2ShortMapkey - element that is searched forpublic boolean containsValue(short value)
Float2ShortMapcontainsValue in interface Float2ShortMapcontainsValue in class AbstractFloat2ShortMapvalue - element that is searched forpublic short getShort(float key)
Float2ShortMapgetShort in interface Float2ShortFunctiongetShort in interface Float2ShortMapkey - the key that is searched forpublic short remFloat(float key)
Float2ShortMapremFloat in interface Float2ShortMapkey - the element that should be removedpublic short remFloatOrDefault(float key,
short defaultValue)
Float2ShortMapremFloatOrDefault in interface Float2ShortMapkey - 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,
short value)
Float2ShortMapremove in interface Float2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
short oldValue,
short newValue)
Float2ShortMapreplace in interface Float2ShortMapreplace in class AbstractFloat2ShortMapkey - 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 Float2ShortMapreplace in class AbstractFloat2ShortMapkey - the element that should be searched forvalue - the value to replace with.public void replaceShorts(Float2ShortMap m)
Float2ShortMapreplaceShorts in interface Float2ShortMapreplaceShorts in class AbstractFloat2ShortMapm - elements that should be replaced.public void replaceShorts(FloatShortUnaryOperator mappingFunction)
Float2ShortMapreplaceShorts in interface Float2ShortMapreplaceShorts in class AbstractFloat2ShortMapmappingFunction - operation to replace all valuespublic short computeShort(float key,
FloatShortUnaryOperator mappingFunction)
Float2ShortMapcomputeShort in interface Float2ShortMapcomputeShort in class AbstractFloat2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic short computeShortIfAbsent(float key,
Float2ShortFunction mappingFunction)
Float2ShortMapcomputeShortIfAbsent in interface Float2ShortMapcomputeShortIfAbsent in class AbstractFloat2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic short computeShortIfPresent(float key,
FloatShortUnaryOperator mappingFunction)
Float2ShortMapcomputeShortIfPresent in interface Float2ShortMapcomputeShortIfPresent in class AbstractFloat2ShortMapkey - 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 Float2ShortMapmergeShort in class AbstractFloat2ShortMapkey - 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 Float2ShortMapmergeAllShort in class AbstractFloat2ShortMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic short getOrDefault(float key,
short defaultValue)
Float2ShortMapgetOrDefault in interface Float2ShortMapgetOrDefault in class AbstractFloat2ShortMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(FloatShortConsumer action)
Float2ShortMapforEach in interface Float2ShortMapforEach in class AbstractFloat2ShortMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Short>size in class java.util.AbstractMap<java.lang.Float,java.lang.Short>public FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Short>keySet in interface Float2ShortMapkeySet in class AbstractFloat2ShortMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Short>values in interface Float2ShortMapvalues in class AbstractFloat2ShortMappublic ObjectSet<Float2ShortMap.Entry> float2ShortEntrySet()
Float2ShortMapfloat2ShortEntrySet in interface Float2ShortMap@Deprecated public 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 AbstractFloat2ShortMap@Deprecated
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 Float2ShortMapgetOrDefault in class AbstractFloat2ShortMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Short>containsValue in interface Float2ShortMapcontainsValue in class java.util.AbstractMap<java.lang.Float,java.lang.Short>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.Short>containsKey in interface Float2ShortMapcontainsKey in class java.util.AbstractMap<java.lang.Float,java.lang.Short>key - that is searched for.Map.containsKey(Object)@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>@Deprecated public 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)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Short>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Short>@Deprecated
public java.lang.Short putIfAbsent(java.lang.Float key,
java.lang.Short value)
putIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Short>putIfAbsent in interface Float2ShortMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,java.lang.Short>remove in interface Float2ShortMapkey - 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.Short oldValue,
java.lang.Short newValue)
replace in interface java.util.Map<java.lang.Float,java.lang.Short>replace in interface Float2ShortMap@Deprecated
public java.lang.Short replace(java.lang.Float key,
java.lang.Short value)
replace in interface java.util.Map<java.lang.Float,java.lang.Short>replace in interface Float2ShortMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Float,java.lang.Short>replaceAll in interface Float2ShortMap@Deprecated
public java.lang.Short compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
compute in interface java.util.Map<java.lang.Float,java.lang.Short>compute in interface Float2ShortMap@Deprecated
public java.lang.Short computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Short> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Short>computeIfAbsent in interface Float2ShortMap@Deprecated
public java.lang.Short computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Float,java.lang.Short>computeIfPresent in interface Float2ShortMap@Deprecated
public java.lang.Short merge(java.lang.Float key,
java.lang.Short value,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
merge in interface java.util.Map<java.lang.Float,java.lang.Short>merge in interface Float2ShortMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Short> action)
forEach in interface java.util.Map<java.lang.Float,java.lang.Short>forEach in interface Float2ShortMap