public abstract class AbstractBoolean2ByteMap extends java.util.AbstractMap<java.lang.Boolean,java.lang.Byte> implements Boolean2ByteMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBoolean2ByteMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Boolean2ByteMap.Entry, Boolean2ByteMap.FastEntrySet| Constructor and Description |
|---|
AbstractBoolean2ByteMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Boolean2ByteMap m)
A Helper method to bulk add primitives together.
|
byte |
computeByte(boolean key,
BooleanByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfAbsent(boolean key,
Boolean2ByteFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfPresent(boolean key,
BooleanByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(boolean key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(byte value)
Type Specific method to reduce boxing/unboxing of values
|
Boolean2ByteMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Byte>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(BooleanByteConsumer 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(boolean 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() |
BooleanSet |
keySet() |
void |
mergeAllByte(Boolean2ByteMap m,
ByteByteUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
byte |
mergeByte(boolean key,
byte value,
ByteByteUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
java.lang.Byte |
put(java.lang.Boolean key,
java.lang.Byte value)
Deprecated.
|
void |
putAll(boolean[] 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.Boolean[] 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(Boolean2ByteMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Boolean,? extends java.lang.Byte> m) |
void |
putAllIfAbsent(Boolean2ByteMap m)
Type-Specific bulk put method put elements into the map if not present.
|
java.lang.Byte |
remove(java.lang.Object key) |
byte |
replace(boolean key,
byte value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(boolean key,
byte oldValue,
byte newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceBytes(Boolean2ByteMap m)
Type-Specific bulk replace method.
|
void |
replaceBytes(BooleanByteUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractBoolean2ByteMap |
setDefaultReturnValue(byte v)
Method to define the default return value if a requested key isn't present
|
byte |
supplyByteIfAbsent(boolean 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, boolean2ByteEntrySet, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, merge, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrompublic byte getDefaultReturnValue()
Boolean2ByteMapgetDefaultReturnValue in interface Boolean2ByteMappublic AbstractBoolean2ByteMap setDefaultReturnValue(byte v)
Boolean2ByteMapsetDefaultReturnValue in interface Boolean2ByteMapv - value that should be the default return valuepublic Boolean2ByteMap copy()
Boolean2ByteMapcopy in interface Boolean2ByteMap@Deprecated
public java.lang.Byte put(java.lang.Boolean key,
java.lang.Byte value)
put in interface java.util.Map<java.lang.Boolean,java.lang.Byte>put in interface Boolean2ByteMapput in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>public void addToAll(Boolean2ByteMap m)
Boolean2ByteMapaddToAll in interface Boolean2ByteMapm - the values that should be added/insertedpublic void putAll(Boolean2ByteMap m)
Boolean2ByteMapputAll in interface Boolean2ByteMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Boolean,? extends java.lang.Byte> m)
putAll in interface java.util.Map<java.lang.Boolean,java.lang.Byte>putAll in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>public void putAll(boolean[] keys,
byte[] values,
int offset,
int size)
Boolean2ByteMapputAll in interface Boolean2ByteMapkeys - 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.Boolean[] keys,
java.lang.Byte[] values,
int offset,
int size)
Boolean2ByteMapputAll in interface Boolean2ByteMapkeys - 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(Boolean2ByteMap m)
Boolean2ByteMapputAllIfAbsent in interface Boolean2ByteMapm - elements that should be added if not present.public boolean containsKey(boolean key)
Boolean2ByteMapcontainsKey in interface Boolean2ByteMapkey - element that is searched forpublic boolean containsValue(byte value)
Boolean2ByteMapcontainsValue in interface Boolean2ByteMapvalue - element that is searched forpublic boolean replace(boolean key,
byte oldValue,
byte newValue)
Boolean2ByteMapreplace in interface Boolean2ByteMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public byte replace(boolean key,
byte value)
Boolean2ByteMapreplace in interface Boolean2ByteMapkey - the element that should be searched forvalue - the value to replace with.public void replaceBytes(Boolean2ByteMap m)
Boolean2ByteMapreplaceBytes in interface Boolean2ByteMapm - elements that should be replaced.public void replaceBytes(BooleanByteUnaryOperator mappingFunction)
Boolean2ByteMapreplaceBytes in interface Boolean2ByteMapmappingFunction - operation to replace all valuespublic byte computeByte(boolean key,
BooleanByteUnaryOperator mappingFunction)
Boolean2ByteMapcomputeByte in interface Boolean2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic byte computeByteIfAbsent(boolean key,
Boolean2ByteFunction mappingFunction)
Boolean2ByteMapcomputeByteIfAbsent in interface Boolean2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic byte supplyByteIfAbsent(boolean key,
ByteSupplier valueProvider)
Boolean2ByteMapsupplyByteIfAbsent in interface Boolean2ByteMapkey - the key that should be computedvalueProvider - the value if not presentpublic byte computeByteIfPresent(boolean key,
BooleanByteUnaryOperator mappingFunction)
Boolean2ByteMapcomputeByteIfPresent in interface Boolean2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic byte mergeByte(boolean key,
byte value,
ByteByteUnaryOperator mappingFunction)
Boolean2ByteMapmergeByte in interface Boolean2ByteMapkey - 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(Boolean2ByteMap m, ByteByteUnaryOperator mappingFunction)
Boolean2ByteMapmergeAllByte in interface Boolean2ByteMapm - 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.Boolean,java.lang.Byte>get in interface Boolean2ByteMapget in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>public java.lang.Byte getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
getOrDefault in interface java.util.Map<java.lang.Boolean,java.lang.Byte>getOrDefault in interface Boolean2ByteMappublic byte getOrDefault(boolean key,
byte defaultValue)
Boolean2ByteMapgetOrDefault in interface Boolean2ByteMapkey - 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.Boolean,java.lang.Byte>remove in interface Boolean2ByteMapremove in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>key - the element that should be removedMap.remove(Object)public void forEach(BooleanByteConsumer action)
Boolean2ByteMapforEach in interface Boolean2ByteMapaction - processor of the values that are iterator overpublic BooleanSet keySet()
keySet in interface java.util.Map<java.lang.Boolean,java.lang.Byte>keySet in interface Boolean2ByteMapkeySet in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>public ByteCollection values()
values in interface java.util.Map<java.lang.Boolean,java.lang.Byte>values in interface Boolean2ByteMapvalues in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>public ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Byte>> entrySet()
entrySet in interface java.util.Map<java.lang.Boolean,java.lang.Byte>entrySet in interface Boolean2ByteMapentrySet in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Boolean,java.lang.Byte>equals in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>public int hashCode()
hashCode in interface java.util.Map<java.lang.Boolean,java.lang.Byte>hashCode in class java.util.AbstractMap<java.lang.Boolean,java.lang.Byte>