public static class Byte2BooleanMaps.UnmodifyableMap extends AbstractByte2BooleanMap implements Byte2BooleanMap
AbstractByte2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2BooleanMap.BuilderCache, Byte2BooleanMap.Entry, Byte2BooleanMap.FastEntrySet, Byte2BooleanMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
ObjectSet<Byte2BooleanMap.Entry> |
byte2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
boolean |
computeBoolean(byte key,
ByteBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(byte key,
BytePredicate 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
|
Byte2BooleanMap |
copy()
A Function that does a shallow clone of the Map itself.
|
boolean |
get(byte key)
A Type Specific get method to reduce boxing/unboxing
|
boolean |
getOrDefault(byte key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
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
|
boolean |
put(byte key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(byte key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(byte key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(byte key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
removeOrDefault(byte key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
void |
replaceBooleans(Byte2BooleanMap m)
Type-Specific bulk replace method.
|
void |
replaceBooleans(ByteBooleanUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
boolean |
supplyBooleanIfAbsent(byte key,
BooleanSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
BooleanCollection |
values() |
containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, setDefaultReturnValuecontainsKey, containsValue, isEmpty, size, toStringbuilder, compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, setDefaultReturnValue, synchronize, synchronize, test, unmodifiablealwaysFalse, alwaysTrue, andType, negate, orTypepublic boolean put(byte key,
boolean value)
Byte2BooleanMapput in interface Byte2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(byte key,
boolean value)
Byte2BooleanMapputIfAbsent in interface Byte2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean remove(byte key)
Byte2BooleanMapremove in interface Byte2BooleanMapkey - the element that should be removedpublic boolean removeOrDefault(byte key,
boolean defaultValue)
Byte2BooleanMapremoveOrDefault in interface Byte2BooleanMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(byte key,
boolean value)
Byte2BooleanMapremove in interface Byte2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean get(byte key)
Byte2BooleanMapget in interface Byte2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(byte key,
boolean defaultValue)
Byte2BooleanMapgetOrDefault in interface Byte2BooleanMapgetOrDefault in class AbstractByte2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic boolean computeBoolean(byte key,
ByteBooleanUnaryOperator mappingFunction)
Byte2BooleanMapcomputeBoolean in interface Byte2BooleanMapcomputeBoolean in class AbstractByte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(byte key,
BytePredicate mappingFunction)
Byte2BooleanMapcomputeBooleanIfAbsent in interface Byte2BooleanMapcomputeBooleanIfAbsent in class AbstractByte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean computeBooleanIfPresent(byte key,
ByteBooleanUnaryOperator mappingFunction)
Byte2BooleanMapcomputeBooleanIfPresent in interface Byte2BooleanMapcomputeBooleanIfPresent in class AbstractByte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean supplyBooleanIfAbsent(byte key,
BooleanSupplier valueProvider)
Byte2BooleanMapsupplyBooleanIfAbsent in interface Byte2BooleanMapsupplyBooleanIfAbsent in class AbstractByte2BooleanMapkey - the key that should be computedvalueProvider - the value if not presentpublic boolean mergeBoolean(byte key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
Byte2BooleanMapmergeBoolean in interface Byte2BooleanMapmergeBoolean in class AbstractByte2BooleanMapkey - 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 Byte2BooleanMapmergeAllBoolean in class AbstractByte2BooleanMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic void replaceBooleans(ByteBooleanUnaryOperator mappingFunction)
Byte2BooleanMapreplaceBooleans in interface Byte2BooleanMapreplaceBooleans in class AbstractByte2BooleanMapmappingFunction - operation to replace all valuespublic void replaceBooleans(Byte2BooleanMap m)
Byte2BooleanMapreplaceBooleans in interface Byte2BooleanMapreplaceBooleans in class AbstractByte2BooleanMapm - elements that should be replaced.public Byte2BooleanMap copy()
Byte2BooleanMapcopy in interface Byte2BooleanMapcopy in class AbstractByte2BooleanMappublic void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Boolean>clear in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Boolean>keySet in interface Byte2BooleanMapkeySet in class AbstractByte2BooleanMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Boolean>values in interface Byte2BooleanMapvalues in class AbstractByte2BooleanMappublic ObjectSet<Byte2BooleanMap.Entry> byte2BooleanEntrySet()
Byte2BooleanMapbyte2BooleanEntrySet in interface Byte2BooleanMap