public static class Byte2DoubleMaps.SynchronizedMap extends AbstractByte2DoubleMap implements Byte2DoubleMap
AbstractByte2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2DoubleMap.BuilderCache, Byte2DoubleMap.Entry, Byte2DoubleMap.FastEntrySet, Byte2DoubleMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
double |
addTo(byte key,
double value)
A Helper method to add a primitives together.
|
void |
addToAll(Byte2DoubleMap m)
A Helper method to bulk add primitives together.
|
ObjectSet<Byte2DoubleMap.Entry> |
byte2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear()
Deprecated.
|
java.lang.Double |
compute(java.lang.Byte key,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
double |
computeDouble(byte key,
ByteDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(byte key,
Byte2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(byte key,
ByteDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Double |
computeIfAbsent(java.lang.Byte key,
java.util.function.Function<? super java.lang.Byte,? extends java.lang.Double> mappingFunction)
Deprecated.
|
java.lang.Double |
computeIfPresent(java.lang.Byte key,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
boolean |
containsKey(byte key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(double value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Byte2DoubleMap |
copy()
A Function that does a shallow clone of the Map itself.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Byte,? super java.lang.Double> action)
Deprecated.
|
void |
forEach(ByteDoubleConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
double |
get(byte key)
A Type Specific get method to reduce boxing/unboxing
|
java.lang.Double |
get(java.lang.Object key)
Deprecated.
|
double |
getDefaultReturnValue()
Method to see what the default return value is.
|
double |
getOrDefault(byte key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Double |
getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
Deprecated.
|
ByteSet |
keySet() |
java.lang.Double |
merge(java.lang.Byte key,
java.lang.Double value,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
void |
mergeAllDouble(Byte2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(byte key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
double |
put(byte key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Double |
put(java.lang.Byte key,
java.lang.Double value)
Deprecated.
|
void |
putAll(byte[] keys,
double[] 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(Byte2DoubleMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Byte,? extends java.lang.Double> m) |
void |
putAllIfAbsent(Byte2DoubleMap m)
Type-Specific bulk put method put elements into the map if not present.
|
double |
putIfAbsent(byte key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Double |
putIfAbsent(java.lang.Byte key,
java.lang.Double value)
Deprecated.
|
double |
remove(byte key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(byte key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Double |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
double |
removeOrDefault(byte key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
double |
replace(byte key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Double |
replace(java.lang.Byte key,
java.lang.Double value)
Deprecated.
|
boolean |
replace(byte key,
double oldValue,
double newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Byte key,
java.lang.Double oldValue,
java.lang.Double newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
void |
replaceDoubles(Byte2DoubleMap m)
Type-Specific bulk replace method.
|
void |
replaceDoubles(ByteDoubleUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractByte2DoubleMap |
setDefaultReturnValue(double v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
double |
subFrom(byte key,
double value)
A Helper method to subtract from primitive from each other.
|
double |
supplyDoubleIfAbsent(byte key,
DoubleSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
DoubleCollection |
values() |
entrySet, equals, hashCode, putAllapplyAsDouble, builder, entrySet, put, put, putAll, putAll, putAll, synchronize, synchronize, unmodifiablepublic double getDefaultReturnValue()
Byte2DoubleMapgetDefaultReturnValue in interface Byte2DoubleMapgetDefaultReturnValue in class AbstractByte2DoubleMappublic AbstractByte2DoubleMap setDefaultReturnValue(double v)
Byte2DoubleMapsetDefaultReturnValue in interface Byte2DoubleMapsetDefaultReturnValue in class AbstractByte2DoubleMapv - value that should be the default return valuepublic double put(byte key,
double value)
Byte2DoubleMapput in interface Byte2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(byte key,
double value)
Byte2DoubleMapputIfAbsent in interface Byte2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Byte2DoubleMap m)
Byte2DoubleMapputAllIfAbsent in interface Byte2DoubleMapputAllIfAbsent in class AbstractByte2DoubleMapm - elements that should be added if not present.public double addTo(byte key,
double value)
Byte2DoubleMapaddTo in interface Byte2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic double subFrom(byte key,
double value)
Byte2DoubleMapByte2DoubleMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Byte2DoubleMapkey - that should be subtract fromvalue - that should be subtractpublic void addToAll(Byte2DoubleMap m)
Byte2DoubleMapaddToAll in interface Byte2DoubleMapaddToAll in class AbstractByte2DoubleMapm - the values that should be added/insertedpublic void putAll(Byte2DoubleMap m)
Byte2DoubleMapputAll in interface Byte2DoubleMapputAll in class AbstractByte2DoubleMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Byte,? extends java.lang.Double> m)
putAll in interface java.util.Map<java.lang.Byte,java.lang.Double>putAll in class AbstractByte2DoubleMappublic void putAll(byte[] keys,
double[] values,
int offset,
int size)
Byte2DoubleMapputAll in interface Byte2DoubleMapputAll in class AbstractByte2DoubleMapkeys - 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(byte key)
Byte2DoubleMapcontainsKey in interface Byte2DoubleMapcontainsKey in class AbstractByte2DoubleMapkey - element that is searched forpublic boolean containsValue(double value)
Byte2DoubleMapcontainsValue in interface Byte2DoubleMapcontainsValue in class AbstractByte2DoubleMapvalue - element that is searched forpublic double get(byte key)
Byte2DoubleMapget in interface Byte2DoubleMapkey - the key that is searched forpublic double remove(byte key)
Byte2DoubleMapremove in interface Byte2DoubleMapkey - the element that should be removedpublic double removeOrDefault(byte key,
double defaultValue)
Byte2DoubleMapremoveOrDefault in interface Byte2DoubleMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(byte key,
double value)
Byte2DoubleMapremove in interface Byte2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(byte key,
double oldValue,
double newValue)
Byte2DoubleMapreplace in interface Byte2DoubleMapreplace in class AbstractByte2DoubleMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public double replace(byte key,
double value)
Byte2DoubleMapreplace in interface Byte2DoubleMapreplace in class AbstractByte2DoubleMapkey - the element that should be searched forvalue - the value to replace with.public void replaceDoubles(Byte2DoubleMap m)
Byte2DoubleMapreplaceDoubles in interface Byte2DoubleMapreplaceDoubles in class AbstractByte2DoubleMapm - elements that should be replaced.public void replaceDoubles(ByteDoubleUnaryOperator mappingFunction)
Byte2DoubleMapreplaceDoubles in interface Byte2DoubleMapreplaceDoubles in class AbstractByte2DoubleMapmappingFunction - operation to replace all valuespublic double computeDouble(byte key,
ByteDoubleUnaryOperator mappingFunction)
Byte2DoubleMapcomputeDouble in interface Byte2DoubleMapcomputeDouble in class AbstractByte2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(byte key,
Byte2DoubleFunction mappingFunction)
Byte2DoubleMapcomputeDoubleIfAbsent in interface Byte2DoubleMapcomputeDoubleIfAbsent in class AbstractByte2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double computeDoubleIfPresent(byte key,
ByteDoubleUnaryOperator mappingFunction)
Byte2DoubleMapcomputeDoubleIfPresent in interface Byte2DoubleMapcomputeDoubleIfPresent in class AbstractByte2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double supplyDoubleIfAbsent(byte key,
DoubleSupplier valueProvider)
Byte2DoubleMapsupplyDoubleIfAbsent in interface Byte2DoubleMapsupplyDoubleIfAbsent in class AbstractByte2DoubleMapkey - the key that should be computedvalueProvider - the value if not presentpublic double mergeDouble(byte key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Byte2DoubleMapmergeDouble in interface Byte2DoubleMapmergeDouble in class AbstractByte2DoubleMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllDouble(Byte2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Byte2DoubleMapmergeAllDouble in interface Byte2DoubleMapmergeAllDouble in class AbstractByte2DoubleMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic double getOrDefault(byte key,
double defaultValue)
Byte2DoubleMapgetOrDefault in interface Byte2DoubleMapgetOrDefault in class AbstractByte2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(ByteDoubleConsumer action)
Byte2DoubleMapforEach in interface Byte2DoubleMapforEach in class AbstractByte2DoubleMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Byte,java.lang.Double>size in class java.util.AbstractMap<java.lang.Byte,java.lang.Double>public Byte2DoubleMap copy()
Byte2DoubleMapcopy in interface Byte2DoubleMapcopy in class AbstractByte2DoubleMappublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Double>keySet in interface Byte2DoubleMapkeySet in class AbstractByte2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Double>values in interface Byte2DoubleMapvalues in class AbstractByte2DoubleMappublic ObjectSet<Byte2DoubleMap.Entry> byte2DoubleEntrySet()
Byte2DoubleMapbyte2DoubleEntrySet in interface Byte2DoubleMap@Deprecated public java.lang.Double get(java.lang.Object key)
get in interface java.util.Map<java.lang.Byte,java.lang.Double>get in interface Byte2DoubleMapget in class AbstractByte2DoubleMap@Deprecated
public java.lang.Double getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
getOrDefault in interface java.util.Map<java.lang.Byte,java.lang.Double>getOrDefault in interface Byte2DoubleMapgetOrDefault in class AbstractByte2DoubleMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Byte,java.lang.Double>containsValue in interface Byte2DoubleMapcontainsValue in class java.util.AbstractMap<java.lang.Byte,java.lang.Double>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Byte,java.lang.Double>containsKey in interface Byte2DoubleMapcontainsKey in class java.util.AbstractMap<java.lang.Byte,java.lang.Double>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Double put(java.lang.Byte key,
java.lang.Double value)
put in interface java.util.Map<java.lang.Byte,java.lang.Double>put in interface Byte2DoubleMapput in class AbstractByte2DoubleMap@Deprecated public java.lang.Double remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Byte,java.lang.Double>remove in interface Byte2DoubleMapremove in class AbstractByte2DoubleMapkey - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Double>clear in class java.util.AbstractMap<java.lang.Byte,java.lang.Double>@Deprecated
public java.lang.Double putIfAbsent(java.lang.Byte key,
java.lang.Double value)
putIfAbsent in interface java.util.Map<java.lang.Byte,java.lang.Double>putIfAbsent in interface Byte2DoubleMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Byte,java.lang.Double>remove in interface Byte2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Byte key,
java.lang.Double oldValue,
java.lang.Double newValue)
replace in interface java.util.Map<java.lang.Byte,java.lang.Double>replace in interface Byte2DoubleMap@Deprecated
public java.lang.Double replace(java.lang.Byte key,
java.lang.Double value)
replace in interface java.util.Map<java.lang.Byte,java.lang.Double>replace in interface Byte2DoubleMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Byte,java.lang.Double>replaceAll in interface Byte2DoubleMap@Deprecated
public java.lang.Double compute(java.lang.Byte key,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
compute in interface java.util.Map<java.lang.Byte,java.lang.Double>compute in interface Byte2DoubleMap@Deprecated
public java.lang.Double computeIfAbsent(java.lang.Byte key,
java.util.function.Function<? super java.lang.Byte,? extends java.lang.Double> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Byte,java.lang.Double>computeIfAbsent in interface Byte2DoubleMap@Deprecated
public java.lang.Double computeIfPresent(java.lang.Byte key,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Byte,java.lang.Double>computeIfPresent in interface Byte2DoubleMap@Deprecated
public java.lang.Double merge(java.lang.Byte key,
java.lang.Double value,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
merge in interface java.util.Map<java.lang.Byte,java.lang.Double>merge in interface Byte2DoubleMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Byte,? super java.lang.Double> action)
forEach in interface java.util.Map<java.lang.Byte,java.lang.Double>forEach in interface Byte2DoubleMap