public interface Boolean2ByteMap extends java.util.Map<java.lang.Boolean,java.lang.Byte>, Boolean2ByteFunction
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Boolean2ByteMap.Entry
Type Specific Map Entry that reduces boxing/unboxing
|
static interface |
Boolean2ByteMap.FastEntrySet
Fast Entry set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(boolean key,
byte value)
A Helper method to add a primitives together.
|
void |
addToAll(Boolean2ByteMap m)
A Helper method to bulk add primitives together.
|
ObjectSet<Boolean2ByteMap.Entry> |
boolean2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
default java.lang.Byte |
compute(java.lang.Boolean key,
java.util.function.BiFunction<? super java.lang.Boolean,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
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
|
default java.lang.Byte |
computeIfAbsent(java.lang.Boolean key,
java.util.function.Function<? super java.lang.Boolean,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
default java.lang.Byte |
computeIfPresent(java.lang.Boolean key,
java.util.function.BiFunction<? super java.lang.Boolean,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
boolean |
containsKey(boolean key)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(byte value)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsValue(java.lang.Object value) |
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()
Deprecated.
|
default void |
forEach(java.util.function.BiConsumer<? super java.lang.Boolean,? super java.lang.Byte> action)
Deprecated.
|
void |
forEach(BooleanByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
get(boolean key)
A Type Specific get method to reduce boxing/unboxing
|
default java.lang.Byte |
get(java.lang.Object key)
Deprecated.
|
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
|
default java.lang.Byte |
getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
Deprecated.
|
BooleanSet |
keySet() |
default java.lang.Byte |
merge(java.lang.Boolean 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(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
|
byte |
put(boolean key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
default java.lang.Byte |
put(java.lang.Boolean key,
java.lang.Byte value)
Deprecated.
|
default void |
putAll(boolean[] keys,
byte[] values)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
default void |
putAll(java.lang.Boolean[] keys,
java.lang.Byte[] values)
Type Specific Object array method to bulk add elements into a map without creating a wrapper and increasing performances
|
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 |
putAllIfAbsent(Boolean2ByteMap m)
Type-Specific bulk put method put elements into the map if not present.
|
byte |
putIfAbsent(boolean key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
default java.lang.Byte |
putIfAbsent(java.lang.Boolean key,
java.lang.Byte value)
Deprecated.
|
byte |
remove(boolean key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(boolean key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
default java.lang.Byte |
remove(java.lang.Object key) |
default boolean |
remove(java.lang.Object key,
java.lang.Object value) |
byte |
removeOrDefault(boolean key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
byte |
replace(boolean key,
byte value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
default java.lang.Byte |
replace(java.lang.Boolean key,
java.lang.Byte value)
Deprecated.
|
boolean |
replace(boolean key,
byte oldValue,
byte newValue)
A Type Specific replace method to replace an existing value
|
default boolean |
replace(java.lang.Boolean key,
java.lang.Byte oldValue,
java.lang.Byte newValue)
Deprecated.
|
default void |
replaceAll(java.util.function.BiFunction<? super java.lang.Boolean,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
void |
replaceBytes(Boolean2ByteMap m)
Type-Specific bulk replace method.
|
void |
replaceBytes(BooleanByteUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
Boolean2ByteMap |
setDefaultReturnValue(byte v)
Method to define the default return value if a requested key isn't present
|
byte |
subFrom(boolean key,
byte value)
A Helper method to subtract from primitive from each other.
|
byte |
supplyByteIfAbsent(boolean key,
ByteSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
ByteCollection |
values() |
byte getDefaultReturnValue()
Boolean2ByteMap setDefaultReturnValue(byte v)
v - value that should be the default return valueBoolean2ByteMap copy()
byte put(boolean key,
byte value)
key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)default void putAll(boolean[] keys,
byte[] values)
keys - the keys that should be addedvalues - the values that should be addedjava.lang.IllegalStateException - if the arrays are not the same sizeMap.putAll(Map)void putAll(boolean[] keys,
byte[] values,
int offset,
int size)
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 addedjava.lang.IllegalStateException - if the arrays are not within the rangeMap.putAll(Map)default void putAll(java.lang.Boolean[] keys,
java.lang.Byte[] values)
keys - the keys that should be addedvalues - the values that should be addedjava.lang.IllegalStateException - if the arrays are not the same sizeMap.putAll(Map)void putAll(java.lang.Boolean[] keys,
java.lang.Byte[] values,
int offset,
int size)
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 addedjava.lang.IllegalStateException - if the arrays are not within the rangeMap.putAll(Map)byte putIfAbsent(boolean key,
byte value)
key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)void putAllIfAbsent(Boolean2ByteMap m)
m - elements that should be added if not present.byte addTo(boolean key,
byte value)
key - the key that should be inserted,value - the value that should be inserted / addedvoid addToAll(Boolean2ByteMap m)
m - the values that should be added/insertedbyte subFrom(boolean key,
byte value)
getDefaultReturnValue()
If the fence is reached the element will be automaticall removedkey - that should be subtract fromvalue - that should be subtractvoid putAll(Boolean2ByteMap m)
m - the elements that should be insertedboolean containsKey(boolean key)
key - element that is searched fordefault boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Boolean,java.lang.Byte>key - that is searched for.Map.containsKey(Object)boolean containsValue(byte value)
value - element that is searched fordefault boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Boolean,java.lang.Byte>value - that is searched for.Map.containsValue(Object)byte remove(boolean key)
key - the element that should be removeddefault java.lang.Byte remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Boolean,java.lang.Byte>key - the element that should be removedMap.remove(Object)boolean remove(boolean key,
byte value)
key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)default boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Boolean,java.lang.Byte>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)byte removeOrDefault(boolean key,
byte defaultValue)
key - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)boolean replace(boolean key,
byte oldValue,
byte newValue)
key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.byte replace(boolean key,
byte value)
key - the element that should be searched forvalue - the value to replace with.void replaceBytes(Boolean2ByteMap m)
m - elements that should be replaced.void replaceBytes(BooleanByteUnaryOperator mappingFunction)
mappingFunction - operation to replace all valuesbyte computeByte(boolean key,
BooleanByteUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the valuebyte computeByteIfAbsent(boolean key,
Boolean2ByteFunction mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if not presentbyte supplyByteIfAbsent(boolean key,
ByteSupplier valueProvider)
key - the key that should be computedvalueProvider - the value if not presentbyte computeByteIfPresent(boolean key,
BooleanByteUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if presentbyte mergeByte(boolean key,
byte value,
ByteByteUnaryOperator mappingFunction)
key - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuevoid mergeAllByte(Boolean2ByteMap m, ByteByteUnaryOperator mappingFunction)
m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Value@Deprecated
default boolean replace(java.lang.Boolean key,
java.lang.Byte oldValue,
java.lang.Byte newValue)
replace in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated
default java.lang.Byte replace(java.lang.Boolean key,
java.lang.Byte value)
replace in interface java.util.Map<java.lang.Boolean,java.lang.Byte>byte get(boolean key)
get in interface Boolean2ByteFunctionkey - the key that is searched forbyte getOrDefault(boolean key,
byte defaultValue)
key - the key that is searched fordefaultValue - the value that should be returned if the key is not present@Deprecated default java.lang.Byte get(java.lang.Object key)
get in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated
default java.lang.Byte getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
getOrDefault in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated default void replaceAll(java.util.function.BiFunction<? super java.lang.Boolean,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated
default java.lang.Byte compute(java.lang.Boolean key,
java.util.function.BiFunction<? super java.lang.Boolean,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
compute in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated
default java.lang.Byte computeIfAbsent(java.lang.Boolean key,
java.util.function.Function<? super java.lang.Boolean,? extends java.lang.Byte> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated
default java.lang.Byte computeIfPresent(java.lang.Boolean key,
java.util.function.BiFunction<? super java.lang.Boolean,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated
default java.lang.Byte merge(java.lang.Boolean 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.Boolean,java.lang.Byte>void forEach(BooleanByteConsumer action)
action - processor of the values that are iterator over@Deprecated default void forEach(java.util.function.BiConsumer<? super java.lang.Boolean,? super java.lang.Byte> action)
forEach in interface java.util.Map<java.lang.Boolean,java.lang.Byte>BooleanSet keySet()
keySet in interface java.util.Map<java.lang.Boolean,java.lang.Byte>ByteCollection values()
values in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Byte>> entrySet()
entrySet in interface java.util.Map<java.lang.Boolean,java.lang.Byte>ObjectSet<Boolean2ByteMap.Entry> boolean2ByteEntrySet()
@Deprecated
default java.lang.Byte put(java.lang.Boolean key,
java.lang.Byte value)
put in interface java.util.Map<java.lang.Boolean,java.lang.Byte>@Deprecated
default java.lang.Byte putIfAbsent(java.lang.Boolean key,
java.lang.Byte value)
putIfAbsent in interface java.util.Map<java.lang.Boolean,java.lang.Byte>