V - the type of elements maintained by this Collectionpublic static class Double2ObjectMaps.SynchronizedMap<V> extends AbstractDouble2ObjectMap<V> implements Double2ObjectMap<V>
AbstractDouble2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ObjectMap.BuilderCache<V>, Double2ObjectMap.Entry<V>, Double2ObjectMap.FastEntrySet<V>, Double2ObjectMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
|
V |
compute(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super V,? extends V> mappingFunction)
Deprecated.
|
V |
compute(double key,
DoubleObjectUnaryOperator<V> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
V |
computeIfAbsent(double key,
Double2ObjectFunction<V> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
V |
computeIfAbsent(java.lang.Double key,
java.util.function.Function<? super java.lang.Double,? extends V> mappingFunction)
Deprecated.
|
V |
computeIfPresent(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super V,? extends V> mappingFunction)
Deprecated.
|
V |
computeIfPresent(double key,
DoubleObjectUnaryOperator<V> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(double key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Double2ObjectMap<V> |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Double2ObjectMap.Entry<V>> |
double2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Double,? super V> action)
Deprecated.
|
void |
forEach(DoubleObjectConsumer<V> action)
Type Specific forEach method to reduce boxing/unboxing
|
V |
get(double key)
A Type Specific get method to reduce boxing/unboxing
|
V |
get(java.lang.Object key)
Deprecated.
|
V |
getDefaultReturnValue()
Method to see what the default return value is.
|
V |
getOrDefault(double key,
V defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
V |
getOrDefault(java.lang.Object key,
V defaultValue)
Deprecated.
|
DoubleSet |
keySet() |
V |
merge(java.lang.Double key,
V value,
java.util.function.BiFunction<? super V,? super V,? extends V> mappingFunction)
Deprecated.
|
V |
merge(double key,
V value,
ObjectObjectUnaryOperator<V,V> mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
void |
mergeAll(Double2ObjectMap<V> m,
ObjectObjectUnaryOperator<V,V> mappingFunction)
A Bulk method for merging Maps.
|
V |
put(double key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
put(java.lang.Double key,
V value)
Deprecated.
|
void |
putAll(double[] 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(Double2ObjectMap<V> m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Double,? extends V> m) |
void |
putAllIfAbsent(Double2ObjectMap<V> m)
Type-Specific bulk put method put elements into the map if not present.
|
V |
putIfAbsent(double key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
putIfAbsent(java.lang.Double key,
V value)
Deprecated.
|
V |
remove(double key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(double 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 |
removeOrDefault(double key,
V defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
V |
replace(double key,
V value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
V |
replace(java.lang.Double key,
V value)
Deprecated.
|
boolean |
replace(double key,
V oldValue,
V newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Double key,
V oldValue,
V newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Double,? super V,? extends V> mappingFunction)
Deprecated.
|
void |
replaceObjects(Double2ObjectMap<V> m)
Type-Specific bulk replace method.
|
void |
replaceObjects(DoubleObjectUnaryOperator<V> mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractDouble2ObjectMap<V> |
setDefaultReturnValue(V v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
V |
supplyIfAbsent(double key,
ObjectSupplier<V> valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
ObjectCollection<V> |
values() |
entrySet, equals, hashCode, putAllbuilder, entrySet, putAll, putAll, putAll, synchronize, synchronize, unmodifiableapplypublic V getDefaultReturnValue()
Double2ObjectMapgetDefaultReturnValue in interface Double2ObjectMap<V>getDefaultReturnValue in class AbstractDouble2ObjectMap<V>public AbstractDouble2ObjectMap<V> setDefaultReturnValue(V v)
Double2ObjectMapsetDefaultReturnValue in interface Double2ObjectMap<V>setDefaultReturnValue in class AbstractDouble2ObjectMap<V>v - value that should be the default return valuepublic V put(double key, V value)
Double2ObjectMapput in interface Double2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public V putIfAbsent(double key, V value)
Double2ObjectMapputIfAbsent in interface Double2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Double2ObjectMap<V> m)
Double2ObjectMapputAllIfAbsent in interface Double2ObjectMap<V>putAllIfAbsent in class AbstractDouble2ObjectMap<V>m - elements that should be added if not present.public void putAll(Double2ObjectMap<V> m)
Double2ObjectMapputAll in interface Double2ObjectMap<V>putAll in class AbstractDouble2ObjectMap<V>m - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Double,? extends V> m)
putAll in interface java.util.Map<java.lang.Double,V>putAll in class AbstractDouble2ObjectMap<V>public void putAll(double[] keys,
V[] values,
int offset,
int size)
Double2ObjectMapputAll in interface Double2ObjectMap<V>putAll in class AbstractDouble2ObjectMap<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(double key)
Double2ObjectMapcontainsKey in interface Double2ObjectMap<V>containsKey in class AbstractDouble2ObjectMap<V>key - element that is searched forpublic V get(double key)
Double2ObjectMapget in interface Double2ObjectFunction<V>get in interface Double2ObjectMap<V>key - the key that is searched forpublic V remove(double key)
Double2ObjectMapremove in interface Double2ObjectMap<V>key - the element that should be removedpublic V removeOrDefault(double key, V defaultValue)
Double2ObjectMapremoveOrDefault in interface Double2ObjectMap<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(double key,
V value)
Double2ObjectMapremove in interface Double2ObjectMap<V>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(double key,
V oldValue,
V newValue)
Double2ObjectMapreplace in interface Double2ObjectMap<V>replace in class AbstractDouble2ObjectMap<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(double key, V value)
Double2ObjectMapreplace in interface Double2ObjectMap<V>replace in class AbstractDouble2ObjectMap<V>key - the element that should be searched forvalue - the value to replace with.public void replaceObjects(Double2ObjectMap<V> m)
Double2ObjectMapreplaceObjects in interface Double2ObjectMap<V>replaceObjects in class AbstractDouble2ObjectMap<V>m - elements that should be replaced.public void replaceObjects(DoubleObjectUnaryOperator<V> mappingFunction)
Double2ObjectMapreplaceObjects in interface Double2ObjectMap<V>replaceObjects in class AbstractDouble2ObjectMap<V>mappingFunction - operation to replace all valuespublic V compute(double key, DoubleObjectUnaryOperator<V> mappingFunction)
Double2ObjectMapcompute in interface Double2ObjectMap<V>compute in class AbstractDouble2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the valuepublic V computeIfAbsent(double key, Double2ObjectFunction<V> mappingFunction)
Double2ObjectMapcomputeIfAbsent in interface Double2ObjectMap<V>computeIfAbsent in class AbstractDouble2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic V computeIfPresent(double key, DoubleObjectUnaryOperator<V> mappingFunction)
Double2ObjectMapcomputeIfPresent in interface Double2ObjectMap<V>computeIfPresent in class AbstractDouble2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic V supplyIfAbsent(double key, ObjectSupplier<V> valueProvider)
Double2ObjectMapsupplyIfAbsent in interface Double2ObjectMap<V>supplyIfAbsent in class AbstractDouble2ObjectMap<V>key - the key that should be computedvalueProvider - the value if not presentpublic V merge(double key, V value, ObjectObjectUnaryOperator<V,V> mappingFunction)
Double2ObjectMapmerge in interface Double2ObjectMap<V>merge in class AbstractDouble2ObjectMap<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(Double2ObjectMap<V> m, ObjectObjectUnaryOperator<V,V> mappingFunction)
Double2ObjectMapmergeAll in interface Double2ObjectMap<V>mergeAll in class AbstractDouble2ObjectMap<V>m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic V getOrDefault(double key, V defaultValue)
Double2ObjectMapgetOrDefault in interface Double2ObjectMap<V>getOrDefault in class AbstractDouble2ObjectMap<V>key - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(DoubleObjectConsumer<V> action)
Double2ObjectMapforEach in interface Double2ObjectMap<V>forEach in class AbstractDouble2ObjectMap<V>action - processor of the values that are iterator overpublic int size()
public Double2ObjectMap<V> copy()
Double2ObjectMapcopy in interface Double2ObjectMap<V>copy in class AbstractDouble2ObjectMap<V>public DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,V>keySet in interface Double2ObjectMap<V>keySet in class AbstractDouble2ObjectMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Double,V>values in interface Double2ObjectMap<V>values in class AbstractDouble2ObjectMap<V>public ObjectSet<Double2ObjectMap.Entry<V>> double2ObjectEntrySet()
Double2ObjectMapdouble2ObjectEntrySet in interface Double2ObjectMap<V>@Deprecated public V get(java.lang.Object key)
get in interface java.util.Map<java.lang.Double,V>get in interface Double2ObjectMap<V>get in class AbstractDouble2ObjectMap<V>@Deprecated public V getOrDefault(java.lang.Object key, V defaultValue)
getOrDefault in interface java.util.Map<java.lang.Double,V>getOrDefault in interface Double2ObjectMap<V>getOrDefault in class AbstractDouble2ObjectMap<V>@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Double,V>containsValue in class AbstractDouble2ObjectMap<V>@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Double,V>containsKey in interface Double2ObjectMap<V>containsKey in class java.util.AbstractMap<java.lang.Double,V>key - that is searched for.Map.containsKey(Object)@Deprecated public V put(java.lang.Double key, V value)
put in interface java.util.Map<java.lang.Double,V>put in interface Double2ObjectMap<V>put in class AbstractDouble2ObjectMap<V>@Deprecated public V remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Double,V>remove in interface Double2ObjectMap<V>remove in class AbstractDouble2ObjectMap<V>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
@Deprecated public V putIfAbsent(java.lang.Double key, V value)
putIfAbsent in interface java.util.Map<java.lang.Double,V>putIfAbsent in interface Double2ObjectMap<V>@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Double,V>remove in interface Double2ObjectMap<V>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Double key,
V oldValue,
V newValue)
replace in interface java.util.Map<java.lang.Double,V>replace in interface Double2ObjectMap<V>@Deprecated public V replace(java.lang.Double key, V value)
replace in interface java.util.Map<java.lang.Double,V>replace in interface Double2ObjectMap<V>@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Double,? super V,? extends V> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Double,V>replaceAll in interface Double2ObjectMap<V>@Deprecated public V compute(java.lang.Double key, java.util.function.BiFunction<? super java.lang.Double,? super V,? extends V> mappingFunction)
compute in interface java.util.Map<java.lang.Double,V>compute in interface Double2ObjectMap<V>@Deprecated public V computeIfAbsent(java.lang.Double key, java.util.function.Function<? super java.lang.Double,? extends V> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Double,V>computeIfAbsent in interface Double2ObjectMap<V>@Deprecated public V computeIfPresent(java.lang.Double key, java.util.function.BiFunction<? super java.lang.Double,? super V,? extends V> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Double,V>computeIfPresent in interface Double2ObjectMap<V>@Deprecated public V merge(java.lang.Double key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> mappingFunction)
merge in interface java.util.Map<java.lang.Double,V>merge in interface Double2ObjectMap<V>@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Double,? super V> action)
forEach in interface java.util.Map<java.lang.Double,V>forEach in interface Double2ObjectMap<V>