public static class Double2ByteMaps.SynchronizedMap extends AbstractDouble2ByteMap implements Double2ByteMap
AbstractDouble2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ByteMap.BuilderCache, Double2ByteMap.Entry, Double2ByteMap.FastEntrySet, Double2ByteMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(double key,
byte value)
A Helper method to add a primitives together.
|
void |
addToAll(Double2ByteMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Byte |
compute(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
byte |
computeByte(double key,
DoubleByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfAbsent(double key,
Double2ByteFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfPresent(double key,
DoubleByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Byte |
computeIfAbsent(java.lang.Double key,
java.util.function.Function<? super java.lang.Double,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
java.lang.Byte |
computeIfPresent(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
boolean |
containsKey(double key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(byte value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Double2ByteMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Double2ByteMap.Entry> |
double2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Double,? super java.lang.Byte> action)
Deprecated.
|
void |
forEach(DoubleByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
get(double key)
A Type Specific get method to reduce boxing/unboxing
|
java.lang.Byte |
get(java.lang.Object key)
Deprecated.
|
byte |
getDefaultReturnValue()
Method to see what the default return value is.
|
byte |
getOrDefault(double key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Byte |
getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
Deprecated.
|
DoubleSet |
keySet() |
java.lang.Byte |
merge(java.lang.Double key,
java.lang.Byte value,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
void |
mergeAllByte(Double2ByteMap m,
ByteByteUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
byte |
mergeByte(double key,
byte value,
ByteByteUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
byte |
put(double key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Byte |
put(java.lang.Double key,
java.lang.Byte value)
Deprecated.
|
void |
putAll(double[] keys,
byte[] 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(Double2ByteMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Byte> m) |
void |
putAllIfAbsent(Double2ByteMap m)
Type-Specific bulk put method put elements into the map if not present.
|
byte |
putIfAbsent(double key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Byte |
putIfAbsent(java.lang.Double key,
java.lang.Byte value)
Deprecated.
|
byte |
remove(double key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(double key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Byte |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
byte |
removeOrDefault(double key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
byte |
replace(double key,
byte value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Byte |
replace(java.lang.Double key,
java.lang.Byte value)
Deprecated.
|
boolean |
replace(double key,
byte oldValue,
byte newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Double key,
java.lang.Byte oldValue,
java.lang.Byte newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
void |
replaceBytes(Double2ByteMap m)
Type-Specific bulk replace method.
|
void |
replaceBytes(DoubleByteUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractDouble2ByteMap |
setDefaultReturnValue(byte v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
byte |
subFrom(double key,
byte value)
A Helper method to subtract from primitive from each other.
|
byte |
supplyByteIfAbsent(double key,
ByteSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
ByteCollection |
values() |
entrySet, equals, hashCode, putAllbuilder, entrySet, putAll, putAll, putAll, synchronize, synchronize, unmodifiablepublic byte getDefaultReturnValue()
Double2ByteMapgetDefaultReturnValue in interface Double2ByteMapgetDefaultReturnValue in class AbstractDouble2ByteMappublic AbstractDouble2ByteMap setDefaultReturnValue(byte v)
Double2ByteMapsetDefaultReturnValue in interface Double2ByteMapsetDefaultReturnValue in class AbstractDouble2ByteMapv - value that should be the default return valuepublic byte put(double key,
byte value)
Double2ByteMapput in interface Double2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(double key,
byte value)
Double2ByteMapputIfAbsent in interface Double2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Double2ByteMap m)
Double2ByteMapputAllIfAbsent in interface Double2ByteMapputAllIfAbsent in class AbstractDouble2ByteMapm - elements that should be added if not present.public byte addTo(double key,
byte value)
Double2ByteMapaddTo in interface Double2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte subFrom(double key,
byte value)
Double2ByteMapDouble2ByteMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Double2ByteMapkey - that should be subtract fromvalue - that should be subtractpublic void addToAll(Double2ByteMap m)
Double2ByteMapaddToAll in interface Double2ByteMapaddToAll in class AbstractDouble2ByteMapm - the values that should be added/insertedpublic void putAll(Double2ByteMap m)
Double2ByteMapputAll in interface Double2ByteMapputAll in class AbstractDouble2ByteMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Byte> m)
putAll in interface java.util.Map<java.lang.Double,java.lang.Byte>putAll in class AbstractDouble2ByteMappublic void putAll(double[] keys,
byte[] values,
int offset,
int size)
Double2ByteMapputAll in interface Double2ByteMapputAll in class AbstractDouble2ByteMapkeys - 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)
Double2ByteMapcontainsKey in interface Double2ByteMapcontainsKey in class AbstractDouble2ByteMapkey - element that is searched forpublic boolean containsValue(byte value)
Double2ByteMapcontainsValue in interface Double2ByteMapcontainsValue in class AbstractDouble2ByteMapvalue - element that is searched forpublic byte get(double key)
Double2ByteMapget in interface Double2ByteFunctionget in interface Double2ByteMapkey - the key that is searched forpublic byte remove(double key)
Double2ByteMapremove in interface Double2ByteMapkey - the element that should be removedpublic byte removeOrDefault(double key,
byte defaultValue)
Double2ByteMapremoveOrDefault in interface Double2ByteMapkey - 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,
byte value)
Double2ByteMapremove in interface Double2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(double key,
byte oldValue,
byte newValue)
Double2ByteMapreplace in interface Double2ByteMapreplace in class AbstractDouble2ByteMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public byte replace(double key,
byte value)
Double2ByteMapreplace in interface Double2ByteMapreplace in class AbstractDouble2ByteMapkey - the element that should be searched forvalue - the value to replace with.public void replaceBytes(Double2ByteMap m)
Double2ByteMapreplaceBytes in interface Double2ByteMapreplaceBytes in class AbstractDouble2ByteMapm - elements that should be replaced.public void replaceBytes(DoubleByteUnaryOperator mappingFunction)
Double2ByteMapreplaceBytes in interface Double2ByteMapreplaceBytes in class AbstractDouble2ByteMapmappingFunction - operation to replace all valuespublic byte computeByte(double key,
DoubleByteUnaryOperator mappingFunction)
Double2ByteMapcomputeByte in interface Double2ByteMapcomputeByte in class AbstractDouble2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic byte computeByteIfAbsent(double key,
Double2ByteFunction mappingFunction)
Double2ByteMapcomputeByteIfAbsent in interface Double2ByteMapcomputeByteIfAbsent in class AbstractDouble2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic byte computeByteIfPresent(double key,
DoubleByteUnaryOperator mappingFunction)
Double2ByteMapcomputeByteIfPresent in interface Double2ByteMapcomputeByteIfPresent in class AbstractDouble2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic byte supplyByteIfAbsent(double key,
ByteSupplier valueProvider)
Double2ByteMapsupplyByteIfAbsent in interface Double2ByteMapsupplyByteIfAbsent in class AbstractDouble2ByteMapkey - the key that should be computedvalueProvider - the value if not presentpublic byte mergeByte(double key,
byte value,
ByteByteUnaryOperator mappingFunction)
Double2ByteMapmergeByte in interface Double2ByteMapmergeByte in class AbstractDouble2ByteMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllByte(Double2ByteMap m, ByteByteUnaryOperator mappingFunction)
Double2ByteMapmergeAllByte in interface Double2ByteMapmergeAllByte in class AbstractDouble2ByteMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic byte getOrDefault(double key,
byte defaultValue)
Double2ByteMapgetOrDefault in interface Double2ByteMapgetOrDefault in class AbstractDouble2ByteMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(DoubleByteConsumer action)
Double2ByteMapforEach in interface Double2ByteMapforEach in class AbstractDouble2ByteMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Double,java.lang.Byte>size in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>public Double2ByteMap copy()
Double2ByteMapcopy in interface Double2ByteMapcopy in class AbstractDouble2ByteMappublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Byte>keySet in interface Double2ByteMapkeySet in class AbstractDouble2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Byte>values in interface Double2ByteMapvalues in class AbstractDouble2ByteMappublic ObjectSet<Double2ByteMap.Entry> double2ByteEntrySet()
Double2ByteMapdouble2ByteEntrySet in interface Double2ByteMap@Deprecated public java.lang.Byte get(java.lang.Object key)
get in interface java.util.Map<java.lang.Double,java.lang.Byte>get in interface Double2ByteMapget in class AbstractDouble2ByteMap@Deprecated
public java.lang.Byte getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
getOrDefault in interface java.util.Map<java.lang.Double,java.lang.Byte>getOrDefault in interface Double2ByteMapgetOrDefault in class AbstractDouble2ByteMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Double,java.lang.Byte>containsValue in interface Double2ByteMapcontainsValue in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Double,java.lang.Byte>containsKey in interface Double2ByteMapcontainsKey in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Byte put(java.lang.Double key,
java.lang.Byte value)
put in interface java.util.Map<java.lang.Double,java.lang.Byte>put in interface Double2ByteMapput in class AbstractDouble2ByteMap@Deprecated public java.lang.Byte remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Double,java.lang.Byte>remove in interface Double2ByteMapremove in class AbstractDouble2ByteMapkey - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Double,java.lang.Byte>clear in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>@Deprecated
public java.lang.Byte putIfAbsent(java.lang.Double key,
java.lang.Byte value)
putIfAbsent in interface java.util.Map<java.lang.Double,java.lang.Byte>putIfAbsent in interface Double2ByteMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Double,java.lang.Byte>remove in interface Double2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Double key,
java.lang.Byte oldValue,
java.lang.Byte newValue)
replace in interface java.util.Map<java.lang.Double,java.lang.Byte>replace in interface Double2ByteMap@Deprecated
public java.lang.Byte replace(java.lang.Double key,
java.lang.Byte value)
replace in interface java.util.Map<java.lang.Double,java.lang.Byte>replace in interface Double2ByteMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Double,java.lang.Byte>replaceAll in interface Double2ByteMap@Deprecated
public java.lang.Byte compute(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
compute in interface java.util.Map<java.lang.Double,java.lang.Byte>compute in interface Double2ByteMap@Deprecated
public java.lang.Byte computeIfAbsent(java.lang.Double key,
java.util.function.Function<? super java.lang.Double,? extends java.lang.Byte> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Double,java.lang.Byte>computeIfAbsent in interface Double2ByteMap@Deprecated
public java.lang.Byte computeIfPresent(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Double,java.lang.Byte>computeIfPresent in interface Double2ByteMap@Deprecated
public java.lang.Byte merge(java.lang.Double key,
java.lang.Byte value,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
merge in interface java.util.Map<java.lang.Double,java.lang.Byte>merge in interface Double2ByteMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Double,? super java.lang.Byte> action)
forEach in interface java.util.Map<java.lang.Double,java.lang.Byte>forEach in interface Double2ByteMap