public static class Long2BooleanMaps.SingletonMap extends AbstractLong2BooleanMap
AbstractLong2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2BooleanMap.Entry, Long2BooleanMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(long key)
A Type Specific get method to reduce boxing/unboxing
|
boolean |
getOrDefault(long key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
LongSet |
keySet() |
ObjectSet<Long2BooleanMap.Entry> |
long2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
put(long key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(long key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remLong(long key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remLongOrDefault(long key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(long 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(long key,
boolean value)
Long2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(long key,
boolean value)
Long2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean remLong(long key)
Long2BooleanMapkey - the element that should be removedpublic boolean remLongOrDefault(long key,
boolean defaultValue)
Long2BooleanMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(long key,
boolean value)
Long2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean getBoolean(long key)
Long2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(long key,
boolean defaultValue)
Long2BooleanMapgetOrDefault in interface Long2BooleanMapgetOrDefault in class AbstractLong2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Boolean>keySet in interface Long2BooleanMapkeySet in class AbstractLong2BooleanMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Boolean>values in interface Long2BooleanMapvalues in class AbstractLong2BooleanMappublic ObjectSet<Long2BooleanMap.Entry> long2BooleanEntrySet()
Long2BooleanMap