public static class Int2BooleanMaps.EmptyMap extends AbstractInt2BooleanMap
AbstractInt2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2BooleanMap.Entry, Int2BooleanMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(int key)
A Type Specific get method to reduce boxing/unboxing
|
boolean |
getOrDefault(int key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ObjectSet<Int2BooleanMap.Entry> |
int2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
boolean |
put(int key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(int key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remInt(int key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remIntOrDefault(int key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(int key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllBoolean, mergeBoolean, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBooleans, replaceBooleans, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic boolean put(int key,
boolean value)
Int2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(int key,
boolean value)
Int2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean remInt(int key)
Int2BooleanMapkey - the element that should be removedpublic boolean remIntOrDefault(int key,
boolean defaultValue)
Int2BooleanMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(int key,
boolean value)
Int2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean getBoolean(int key)
Int2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(int key,
boolean defaultValue)
Int2BooleanMapgetOrDefault in interface Int2BooleanMapgetOrDefault in class AbstractInt2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Boolean>keySet in interface Int2BooleanMapkeySet in class AbstractInt2BooleanMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Boolean>values in interface Int2BooleanMapvalues in class AbstractInt2BooleanMappublic ObjectSet<Int2BooleanMap.Entry> int2BooleanEntrySet()
Int2BooleanMap