V - the type of elements maintained by this Collectionpublic static class Float2ObjectMaps.SynchronizedMap<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 |
|---|---|
void |
clear()
Deprecated.
|
V |
compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super V,? extends V> mappingFunction)
Deprecated.
|
V |
compute(float key,
FloatObjectUnaryOperator<V> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
V |
computeIfAbsent(float key,
Float2ObjectFunction<V> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
V |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends V> mappingFunction)
Deprecated.
|
V |
computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super V,? extends V> mappingFunction)
Deprecated.
|
V |
computeIfPresent(float key,
FloatObjectUnaryOperator<V> 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.
|
ObjectSet<Float2ObjectMap.Entry<V>> |
float2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Float,? super V> action)
Deprecated.
|
void |
forEach(FloatObjectConsumer<V> action)
Type Specific forEach method to reduce boxing/unboxing
|
V |
get(java.lang.Object key)
Deprecated.
|
V |
getDefaultReturnValue()
Method to see what the default return value is.
|
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
|
V |
getOrDefault(java.lang.Object key,
V defaultValue)
Deprecated.
|
FloatSet |
keySet() |
V |
merge(java.lang.Float key,
V value,
java.util.function.BiFunction<? super V,? super V,? extends V> mappingFunction)
Deprecated.
|
V |
merge(float key,
V value,
ObjectObjectUnaryOperator<V,V> mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
void |
mergeAll(Float2ObjectMap<V> m,
ObjectObjectUnaryOperator<V,V> mappingFunction)
A Bulk method for merging Maps.
|
V |
put(float key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
put(java.lang.Float key,
V value)
Deprecated.
|
void |
putAll(float[] keys,
V[] 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(Float2ObjectMap<V> m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Float,? extends V> m) |
void |
putAllIfAbsent(Float2ObjectMap<V> m)
Type-Specific bulk put method put elements into the map if not present.
|
V |
putIfAbsent(float key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
putIfAbsent(java.lang.Float key,
V value)
Deprecated.
|
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
|
V |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
V |
replace(float key,
V value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
V |
replace(java.lang.Float key,
V value)
Deprecated.
|
boolean |
replace(float key,
V oldValue,
V newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Float key,
V oldValue,
V newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super V,? extends V> mappingFunction)
Deprecated.
|
void |
replaceObjects(Float2ObjectMap<V> m)
Type-Specific bulk replace method.
|
void |
replaceObjects(FloatObjectUnaryOperator<V> mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractFloat2ObjectMap<V> |
setDefaultReturnValue(V v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
ObjectCollection<V> |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic V getDefaultReturnValue()
Float2ObjectMapgetDefaultReturnValue in interface Float2ObjectMap<V>getDefaultReturnValue in class AbstractFloat2ObjectMap<V>public AbstractFloat2ObjectMap<V> setDefaultReturnValue(V v)
Float2ObjectMapsetDefaultReturnValue in interface Float2ObjectMap<V>setDefaultReturnValue in class AbstractFloat2ObjectMap<V>v - value that should be the default return valuepublic 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 void putAllIfAbsent(Float2ObjectMap<V> m)
Float2ObjectMapputAllIfAbsent in interface Float2ObjectMap<V>putAllIfAbsent in class AbstractFloat2ObjectMap<V>m - elements that should be added if not present.public void putAll(Float2ObjectMap<V> m)
Float2ObjectMapputAll in interface Float2ObjectMap<V>putAll in class AbstractFloat2ObjectMap<V>m - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Float,? extends V> m)
putAll in interface java.util.Map<java.lang.Float,V>putAll in class AbstractFloat2ObjectMap<V>public void putAll(float[] keys,
V[] values,
int offset,
int size)
Float2ObjectMapputAll in interface Float2ObjectMap<V>putAll in class AbstractFloat2ObjectMap<V>keys - 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)
Float2ObjectMapcontainsKey in interface Float2ObjectMap<V>containsKey in class AbstractFloat2ObjectMap<V>key - element that is searched forpublic V getObject(float key)
Float2ObjectMapgetObject in interface Float2ObjectFunction<V>getObject in interface Float2ObjectMap<V>key - the key that is searched forpublic 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 boolean replace(float key,
V oldValue,
V newValue)
Float2ObjectMapreplace in interface Float2ObjectMap<V>replace in class AbstractFloat2ObjectMap<V>key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public V replace(float key, V value)
Float2ObjectMapreplace in interface Float2ObjectMap<V>replace in class AbstractFloat2ObjectMap<V>key - the element that should be searched forvalue - the value to replace with.public void replaceObjects(Float2ObjectMap<V> m)
Float2ObjectMapreplaceObjects in interface Float2ObjectMap<V>replaceObjects in class AbstractFloat2ObjectMap<V>m - elements that should be replaced.public void replaceObjects(FloatObjectUnaryOperator<V> mappingFunction)
Float2ObjectMapreplaceObjects in interface Float2ObjectMap<V>replaceObjects in class AbstractFloat2ObjectMap<V>mappingFunction - operation to replace all valuespublic V compute(float key, FloatObjectUnaryOperator<V> mappingFunction)
Float2ObjectMapcompute in interface Float2ObjectMap<V>compute in class AbstractFloat2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the valuepublic V computeIfAbsent(float key, Float2ObjectFunction<V> mappingFunction)
Float2ObjectMapcomputeIfAbsent in interface Float2ObjectMap<V>computeIfAbsent in class AbstractFloat2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic V computeIfPresent(float key, FloatObjectUnaryOperator<V> mappingFunction)
Float2ObjectMapcomputeIfPresent in interface Float2ObjectMap<V>computeIfPresent in class AbstractFloat2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic V merge(float key, V value, ObjectObjectUnaryOperator<V,V> mappingFunction)
Float2ObjectMapmerge in interface Float2ObjectMap<V>merge in class AbstractFloat2ObjectMap<V>key - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAll(Float2ObjectMap<V> m, ObjectObjectUnaryOperator<V,V> mappingFunction)
Float2ObjectMapmergeAll in interface Float2ObjectMap<V>mergeAll in class AbstractFloat2ObjectMap<V>m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic 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 void forEach(FloatObjectConsumer<V> action)
Float2ObjectMapforEach in interface Float2ObjectMap<V>forEach in class AbstractFloat2ObjectMap<V>action - processor of the values that are iterator overpublic int size()
public 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>@Deprecated public V get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,V>get in interface Float2ObjectMap<V>get in class AbstractFloat2ObjectMap<V>@Deprecated public V getOrDefault(java.lang.Object key, V defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,V>getOrDefault in interface Float2ObjectMap<V>getOrDefault in class AbstractFloat2ObjectMap<V>@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,V>containsValue in class AbstractFloat2ObjectMap<V>@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Float,V>containsKey in interface Float2ObjectMap<V>containsKey in class java.util.AbstractMap<java.lang.Float,V>key - that is searched for.Map.containsKey(Object)@Deprecated public V put(java.lang.Float key, V value)
put in interface java.util.Map<java.lang.Float,V>put in interface Float2ObjectMap<V>put in class java.util.AbstractMap<java.lang.Float,V>@Deprecated public V remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,V>remove in interface Float2ObjectMap<V>remove in class java.util.AbstractMap<java.lang.Float,V>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
@Deprecated public V putIfAbsent(java.lang.Float key, V value)
putIfAbsent in interface java.util.Map<java.lang.Float,V>putIfAbsent in interface Float2ObjectMap<V>@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,V>remove in interface Float2ObjectMap<V>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Float key,
V oldValue,
V newValue)
replace in interface java.util.Map<java.lang.Float,V>replace in interface Float2ObjectMap<V>@Deprecated public V replace(java.lang.Float key, V value)
replace in interface java.util.Map<java.lang.Float,V>replace in interface Float2ObjectMap<V>@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super V,? extends V> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Float,V>replaceAll in interface Float2ObjectMap<V>@Deprecated public V compute(java.lang.Float key, java.util.function.BiFunction<? super java.lang.Float,? super V,? extends V> mappingFunction)
compute in interface java.util.Map<java.lang.Float,V>compute in interface Float2ObjectMap<V>@Deprecated public V computeIfAbsent(java.lang.Float key, java.util.function.Function<? super java.lang.Float,? extends V> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Float,V>computeIfAbsent in interface Float2ObjectMap<V>@Deprecated public V computeIfPresent(java.lang.Float key, java.util.function.BiFunction<? super java.lang.Float,? super V,? extends V> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Float,V>computeIfPresent in interface Float2ObjectMap<V>@Deprecated public V merge(java.lang.Float key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> mappingFunction)
merge in interface java.util.Map<java.lang.Float,V>merge in interface Float2ObjectMap<V>@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Float,? super V> action)
forEach in interface java.util.Map<java.lang.Float,V>forEach in interface Float2ObjectMap<V>