public static class Float2ShortMaps.UnmodifyableMap 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.
|
ObjectSet<Float2ShortMap.Entry> |
float2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
short |
getOrDefault(float key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
short |
getShort(float key)
A Type Specific get method to reduce boxing/unboxing
|
FloatSet |
keySet() |
short |
put(float key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
putIfAbsent(float key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
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
|
ShortCollection |
values() |
addToAll, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllShort, mergeShort, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceShorts, replaceShorts, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddToAll, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllShort, mergeShort, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceShorts, replaceShorts, setDefaultReturnValuepublic 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 short addTo(float key,
short value)
Float2ShortMapaddTo in interface Float2ShortMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic 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 short getShort(float key)
Float2ShortMapgetShort in interface Float2ShortFunctiongetShort in interface Float2ShortMapkey - the key that is searched forpublic 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 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