public abstract class AbstractDouble2ByteMap extends java.util.AbstractMap<java.lang.Double,java.lang.Byte> implements Double2ByteMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDouble2ByteMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ByteMap.BuilderCache, Double2ByteMap.Entry, Double2ByteMap.FastEntrySet, Double2ByteMap.MapBuilder| Constructor and Description |
|---|
AbstractDouble2ByteMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Double2ByteMap m)
A Helper method to bulk add primitives together.
|
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
|
boolean |
containsKey(double key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(byte value)
Type Specific method to reduce boxing/unboxing of values
|
Double2ByteMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Byte>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(DoubleByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Byte |
get(java.lang.Object key) |
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) |
int |
hashCode() |
DoubleSet |
keySet() |
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
|
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(java.lang.Double[] keys,
java.lang.Byte[] values,
int offset,
int size)
Type Specific Object 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.
|
java.lang.Byte |
remove(java.lang.Object key) |
byte |
replace(double key,
byte value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(double key,
byte oldValue,
byte newValue)
A Type Specific replace method to replace an existing value
|
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
|
byte |
supplyByteIfAbsent(double key,
ByteSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
ByteCollection |
values() |
clear, containsKey, containsValue, isEmpty, size, toStringaddTo, applyAsByte, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, double2ByteEntrySet, forEach, get, merge, put, put, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrom, synchronize, synchronize, unmodifiablepublic byte getDefaultReturnValue()
Double2ByteMapgetDefaultReturnValue in interface Double2ByteMappublic AbstractDouble2ByteMap setDefaultReturnValue(byte v)
Double2ByteMapsetDefaultReturnValue in interface Double2ByteMapv - value that should be the default return valuepublic Double2ByteMap copy()
Double2ByteMapcopy in interface Double2ByteMap@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 java.util.AbstractMap<java.lang.Double,java.lang.Byte>public void addToAll(Double2ByteMap m)
Double2ByteMapaddToAll in interface Double2ByteMapm - the values that should be added/insertedpublic void putAll(Double2ByteMap m)
Double2ByteMapputAll in interface Double2ByteMapm - 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 java.util.AbstractMap<java.lang.Double,java.lang.Byte>public void putAll(double[] keys,
byte[] values,
int offset,
int size)
Double2ByteMapputAll in interface Double2ByteMapkeys - 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 void putAll(java.lang.Double[] keys,
java.lang.Byte[] values,
int offset,
int size)
Double2ByteMapputAll in interface Double2ByteMapkeys - 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 void putAllIfAbsent(Double2ByteMap m)
Double2ByteMapputAllIfAbsent in interface Double2ByteMapm - elements that should be added if not present.public boolean containsKey(double key)
Double2ByteMapcontainsKey in interface Double2ByteMapkey - element that is searched forpublic boolean containsValue(byte value)
Double2ByteMapcontainsValue in interface Double2ByteMapvalue - element that is searched forpublic boolean replace(double key,
byte oldValue,
byte newValue)
Double2ByteMapreplace in interface Double2ByteMapkey - 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 Double2ByteMapkey - the element that should be searched forvalue - the value to replace with.public void replaceBytes(Double2ByteMap m)
Double2ByteMapreplaceBytes in interface Double2ByteMapm - elements that should be replaced.public void replaceBytes(DoubleByteUnaryOperator mappingFunction)
Double2ByteMapreplaceBytes in interface Double2ByteMapmappingFunction - operation to replace all valuespublic byte computeByte(double key,
DoubleByteUnaryOperator mappingFunction)
Double2ByteMapcomputeByte in interface Double2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic byte computeByteIfAbsent(double key,
Double2ByteFunction mappingFunction)
Double2ByteMapcomputeByteIfAbsent in interface Double2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic byte supplyByteIfAbsent(double key,
ByteSupplier valueProvider)
Double2ByteMapsupplyByteIfAbsent in interface Double2ByteMapkey - the key that should be computedvalueProvider - the value if not presentpublic byte computeByteIfPresent(double key,
DoubleByteUnaryOperator mappingFunction)
Double2ByteMapcomputeByteIfPresent in interface Double2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic byte mergeByte(double key,
byte value,
ByteByteUnaryOperator mappingFunction)
Double2ByteMapmergeByte in interface Double2ByteMapkey - 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 Double2ByteMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic 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 java.util.AbstractMap<java.lang.Double,java.lang.Byte>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 Double2ByteMappublic byte getOrDefault(double key,
byte defaultValue)
Double2ByteMapgetOrDefault in interface Double2ByteMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic 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 java.util.AbstractMap<java.lang.Double,java.lang.Byte>key - the element that should be removedMap.remove(Object)public void forEach(DoubleByteConsumer action)
Double2ByteMapforEach in interface Double2ByteMapaction - processor of the values that are iterator overpublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Byte>keySet in interface Double2ByteMapkeySet in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>public ByteCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Byte>values in interface Double2ByteMapvalues in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>public ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Byte>> entrySet()
entrySet in interface java.util.Map<java.lang.Double,java.lang.Byte>entrySet in interface Double2ByteMapentrySet in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Double,java.lang.Byte>equals in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>public int hashCode()
hashCode in interface java.util.Map<java.lang.Double,java.lang.Byte>hashCode in class java.util.AbstractMap<java.lang.Double,java.lang.Byte>