V - the type of elements maintained by this Collectionpublic static class Float2ObjectMaps.UnmodifyableMap<V> extends AbstractFloat2ObjectMap<V> implements Float2ObjectMap<V>
AbstractFloat2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ObjectMap.Entry<V>, Float2ObjectMap.FastEntrySet<V>| Modifier and Type | Method and Description |
|---|---|
ObjectSet<Float2ObjectMap.Entry<V>> |
float2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
V |
getObject(float key)
A Type Specific get method to reduce boxing/unboxing
|
V |
getOrDefault(float key,
V defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
FloatSet |
keySet() |
V |
put(float key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
putIfAbsent(float key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
V |
remFloatOrDefault(float key,
V defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
V value)
Type Specific remove function to reduce boxing/unboxing
|
ObjectCollection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, merge, mergeAll, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceObjects, replaceObjects, setDefaultReturnValueclear, containsKey, isEmpty, put, remove, size, toStringcompute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, containsKey, containsKey, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, merge, mergeAll, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValuepublic V put(float key, V value)
Float2ObjectMapput in interface Float2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public V putIfAbsent(float key, V value)
Float2ObjectMapputIfAbsent in interface Float2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public V remFloat(float key)
Float2ObjectMapremFloat in interface Float2ObjectMap<V>key - the element that should be removedpublic V remFloatOrDefault(float key, V defaultValue)
Float2ObjectMapremFloatOrDefault in interface Float2ObjectMap<V>key - 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,
V value)
Float2ObjectMapremove in interface Float2ObjectMap<V>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public V getObject(float key)
Float2ObjectMapgetObject in interface Float2ObjectFunction<V>getObject in interface Float2ObjectMap<V>key - the key that is searched forpublic V getOrDefault(float key, V defaultValue)
Float2ObjectMapgetOrDefault in interface Float2ObjectMap<V>getOrDefault in class AbstractFloat2ObjectMap<V>key - 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,V>keySet in interface Float2ObjectMap<V>keySet in class AbstractFloat2ObjectMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Float,V>values in interface Float2ObjectMap<V>values in class AbstractFloat2ObjectMap<V>public ObjectSet<Float2ObjectMap.Entry<V>> float2ObjectEntrySet()
Float2ObjectMapfloat2ObjectEntrySet in interface Float2ObjectMap<V>