public static class Float2IntMaps.EmptyMap extends AbstractFloat2IntMap
AbstractFloat2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2IntMap.Entry, Float2IntMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
int |
addTo(float key,
int value)
A Helper method to add a primitives together.
|
ObjectSet<Float2IntMap.Entry> |
float2IntEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
int |
getInt(float key)
A Type Specific get method to reduce boxing/unboxing
|
int |
getOrDefault(float key,
int defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
FloatSet |
keySet() |
int |
put(float key,
int value)
Type Specific method to reduce boxing/unboxing of values
|
int |
putIfAbsent(float key,
int value)
Type Specific method to reduce boxing/unboxing of values
|
int |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
int |
remFloatOrDefault(float key,
int defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
int value)
Type Specific remove function to reduce boxing/unboxing
|
IntCollection |
values() |
addToAll, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllInt, mergeInt, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceInts, replaceInts, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic int put(float key,
int value)
Float2IntMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public int putIfAbsent(float key,
int value)
Float2IntMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public int addTo(float key,
int value)
Float2IntMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic int remFloat(float key)
Float2IntMapkey - the element that should be removedpublic int remFloatOrDefault(float key,
int defaultValue)
Float2IntMapkey - 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,
int value)
Float2IntMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public int getInt(float key)
Float2IntMapkey - the key that is searched forpublic int getOrDefault(float key,
int defaultValue)
Float2IntMapgetOrDefault in interface Float2IntMapgetOrDefault in class AbstractFloat2IntMapkey - 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.Integer>keySet in interface Float2IntMapkeySet in class AbstractFloat2IntMappublic IntCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Integer>values in interface Float2IntMapvalues in class AbstractFloat2IntMappublic ObjectSet<Float2IntMap.Entry> float2IntEntrySet()
Float2IntMap