public abstract class AbstractByte2BooleanMap extends java.util.AbstractMap<java.lang.Byte,java.lang.Boolean> implements Byte2BooleanMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractByte2BooleanMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2BooleanMap.BuilderCache, Byte2BooleanMap.Entry, Byte2BooleanMap.FastEntrySet, Byte2BooleanMap.MapBuilder| Constructor and Description |
|---|
AbstractByte2BooleanMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
computeBoolean(byte key,
ByteBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(byte key,
Byte2BooleanFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(byte key,
ByteBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(byte key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(boolean value)
Type Specific method to reduce boxing/unboxing of values
|
Byte2BooleanMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Byte,java.lang.Boolean>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(ByteBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Boolean |
get(java.lang.Object key) |
boolean |
getDefaultReturnValue()
Method to see what the default return value is.
|
boolean |
getOrDefault(byte key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Boolean |
getOrDefault(java.lang.Object key,
java.lang.Boolean defaultValue) |
int |
hashCode() |
ByteSet |
keySet() |
void |
mergeAllBoolean(Byte2BooleanMap m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(byte key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
java.lang.Boolean |
put(java.lang.Byte key,
java.lang.Boolean value)
Deprecated.
|
void |
putAll(byte[] keys,
boolean[] 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.Byte[] keys,
java.lang.Boolean[] 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(Byte2BooleanMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> m) |
void |
putAllIfAbsent(Byte2BooleanMap m)
Type-Specific bulk put method put elements into the map if not present.
|
java.lang.Boolean |
remove(java.lang.Object key) |
boolean |
replace(byte key,
boolean value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(byte key,
boolean oldValue,
boolean newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceBooleans(Byte2BooleanMap m)
Type-Specific bulk replace method.
|
void |
replaceBooleans(ByteBooleanUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractByte2BooleanMap |
setDefaultReturnValue(boolean v)
Method to define the default return value if a requested key isn't present
|
boolean |
supplyBooleanIfAbsent(byte key,
BooleanSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
BooleanCollection |
values() |
clear, containsKey, containsValue, isEmpty, size, toStringbuilder, byte2BooleanEntrySet, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, merge, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, synchronize, synchronize, unmodifiablepublic boolean getDefaultReturnValue()
Byte2BooleanMapgetDefaultReturnValue in interface Byte2BooleanMappublic AbstractByte2BooleanMap setDefaultReturnValue(boolean v)
Byte2BooleanMapsetDefaultReturnValue in interface Byte2BooleanMapv - value that should be the default return valuepublic Byte2BooleanMap copy()
Byte2BooleanMapcopy in interface Byte2BooleanMap@Deprecated
public java.lang.Boolean put(java.lang.Byte key,
java.lang.Boolean value)
put in interface java.util.Map<java.lang.Byte,java.lang.Boolean>put in interface Byte2BooleanMapput in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public void putAll(Byte2BooleanMap m)
Byte2BooleanMapputAll in interface Byte2BooleanMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> m)
putAll in interface java.util.Map<java.lang.Byte,java.lang.Boolean>putAll in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public void putAll(byte[] keys,
boolean[] values,
int offset,
int size)
Byte2BooleanMapputAll in interface Byte2BooleanMapkeys - 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.Byte[] keys,
java.lang.Boolean[] values,
int offset,
int size)
Byte2BooleanMapputAll in interface Byte2BooleanMapkeys - 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(Byte2BooleanMap m)
Byte2BooleanMapputAllIfAbsent in interface Byte2BooleanMapm - elements that should be added if not present.public boolean containsKey(byte key)
Byte2BooleanMapcontainsKey in interface Byte2BooleanMapkey - element that is searched forpublic boolean containsValue(boolean value)
Byte2BooleanMapcontainsValue in interface Byte2BooleanMapvalue - element that is searched forpublic boolean replace(byte key,
boolean oldValue,
boolean newValue)
Byte2BooleanMapreplace in interface Byte2BooleanMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public boolean replace(byte key,
boolean value)
Byte2BooleanMapreplace in interface Byte2BooleanMapkey - the element that should be searched forvalue - the value to replace with.public void replaceBooleans(Byte2BooleanMap m)
Byte2BooleanMapreplaceBooleans in interface Byte2BooleanMapm - elements that should be replaced.public void replaceBooleans(ByteBooleanUnaryOperator mappingFunction)
Byte2BooleanMapreplaceBooleans in interface Byte2BooleanMapmappingFunction - operation to replace all valuespublic boolean computeBoolean(byte key,
ByteBooleanUnaryOperator mappingFunction)
Byte2BooleanMapcomputeBoolean in interface Byte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(byte key,
Byte2BooleanFunction mappingFunction)
Byte2BooleanMapcomputeBooleanIfAbsent in interface Byte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean supplyBooleanIfAbsent(byte key,
BooleanSupplier valueProvider)
Byte2BooleanMapsupplyBooleanIfAbsent in interface Byte2BooleanMapkey - the key that should be computedvalueProvider - the value if not presentpublic boolean computeBooleanIfPresent(byte key,
ByteBooleanUnaryOperator mappingFunction)
Byte2BooleanMapcomputeBooleanIfPresent in interface Byte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean mergeBoolean(byte key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
Byte2BooleanMapmergeBoolean in interface Byte2BooleanMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllBoolean(Byte2BooleanMap m, BooleanBooleanUnaryOperator mappingFunction)
Byte2BooleanMapmergeAllBoolean in interface Byte2BooleanMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic java.lang.Boolean get(java.lang.Object key)
get in interface java.util.Map<java.lang.Byte,java.lang.Boolean>get in interface Byte2BooleanMapget in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public java.lang.Boolean getOrDefault(java.lang.Object key,
java.lang.Boolean defaultValue)
getOrDefault in interface java.util.Map<java.lang.Byte,java.lang.Boolean>getOrDefault in interface Byte2BooleanMappublic boolean getOrDefault(byte key,
boolean defaultValue)
Byte2BooleanMapgetOrDefault in interface Byte2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic java.lang.Boolean remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Byte,java.lang.Boolean>remove in interface Byte2BooleanMapremove in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>key - the element that should be removedMap.remove(Object)public void forEach(ByteBooleanConsumer action)
Byte2BooleanMapforEach in interface Byte2BooleanMapaction - processor of the values that are iterator overpublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Boolean>keySet in interface Byte2BooleanMapkeySet in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public BooleanCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Boolean>values in interface Byte2BooleanMapvalues in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public ObjectSet<java.util.Map.Entry<java.lang.Byte,java.lang.Boolean>> entrySet()
entrySet in interface java.util.Map<java.lang.Byte,java.lang.Boolean>entrySet in interface Byte2BooleanMapentrySet in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Byte,java.lang.Boolean>equals in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public int hashCode()
hashCode in interface java.util.Map<java.lang.Byte,java.lang.Boolean>hashCode in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>