public static class Long2BooleanMaps.SynchronizedMap extends AbstractLong2BooleanMap implements Long2BooleanMap
AbstractLong2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2BooleanMap.BuilderCache, Long2BooleanMap.Entry, Long2BooleanMap.FastEntrySet, Long2BooleanMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
|
java.lang.Boolean |
compute(java.lang.Long key,
java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
boolean |
computeBoolean(long key,
LongBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(long key,
Long2BooleanFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(long key,
LongBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Boolean |
computeIfAbsent(java.lang.Long key,
java.util.function.Function<? super java.lang.Long,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
java.lang.Boolean |
computeIfPresent(java.lang.Long key,
java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
boolean |
containsKey(long key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Long2BooleanMap |
copy()
A Function that does a shallow clone of the Map itself.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Long,? super java.lang.Boolean> action)
Deprecated.
|
void |
forEach(LongBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
get(long key)
A Type Specific get method to reduce boxing/unboxing
|
java.lang.Boolean |
get(java.lang.Object key)
Deprecated.
|
boolean |
getDefaultReturnValue()
Method to see what the default return value is.
|
boolean |
getOrDefault(long key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Boolean |
getOrDefault(java.lang.Object key,
java.lang.Boolean defaultValue)
Deprecated.
|
LongSet |
keySet() |
ObjectSet<Long2BooleanMap.Entry> |
long2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
java.lang.Boolean |
merge(java.lang.Long key,
java.lang.Boolean value,
java.util.function.BiFunction<? super java.lang.Boolean,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
void |
mergeAllBoolean(Long2BooleanMap m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(long key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
put(long key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Boolean |
put(java.lang.Long key,
java.lang.Boolean value)
Deprecated.
|
void |
putAll(long[] 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(Long2BooleanMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> m) |
void |
putAllIfAbsent(Long2BooleanMap m)
Type-Specific bulk put method put elements into the map if not present.
|
boolean |
putIfAbsent(long key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Boolean |
putIfAbsent(java.lang.Long key,
java.lang.Boolean value)
Deprecated.
|
boolean |
remove(long key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(long key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Boolean |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
boolean |
removeOrDefault(long key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
replace(long key,
boolean value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Boolean |
replace(java.lang.Long key,
java.lang.Boolean value)
Deprecated.
|
boolean |
replace(long key,
boolean oldValue,
boolean newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Long key,
java.lang.Boolean oldValue,
java.lang.Boolean newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
void |
replaceBooleans(Long2BooleanMap m)
Type-Specific bulk replace method.
|
void |
replaceBooleans(LongBooleanUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractLong2BooleanMap |
setDefaultReturnValue(boolean v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
boolean |
supplyBooleanIfAbsent(long key,
BooleanSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
BooleanCollection |
values() |
entrySet, equals, hashCode, putAllbuilder, entrySet, putAll, putAll, putAll, synchronize, synchronize, unmodifiablepublic boolean getDefaultReturnValue()
Long2BooleanMapgetDefaultReturnValue in interface Long2BooleanMapgetDefaultReturnValue in class AbstractLong2BooleanMappublic AbstractLong2BooleanMap setDefaultReturnValue(boolean v)
Long2BooleanMapsetDefaultReturnValue in interface Long2BooleanMapsetDefaultReturnValue in class AbstractLong2BooleanMapv - value that should be the default return valuepublic boolean put(long key,
boolean value)
Long2BooleanMapput in interface Long2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(long key,
boolean value)
Long2BooleanMapputIfAbsent in interface Long2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Long2BooleanMap m)
Long2BooleanMapputAllIfAbsent in interface Long2BooleanMapputAllIfAbsent in class AbstractLong2BooleanMapm - elements that should be added if not present.public void putAll(Long2BooleanMap m)
Long2BooleanMapputAll in interface Long2BooleanMapputAll in class AbstractLong2BooleanMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> m)
putAll in interface java.util.Map<java.lang.Long,java.lang.Boolean>putAll in class AbstractLong2BooleanMappublic void putAll(long[] keys,
boolean[] values,
int offset,
int size)
Long2BooleanMapputAll in interface Long2BooleanMapputAll in class AbstractLong2BooleanMapkeys - 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 boolean containsKey(long key)
Long2BooleanMapcontainsKey in interface Long2BooleanMapcontainsKey in class AbstractLong2BooleanMapkey - element that is searched forpublic boolean containsValue(boolean value)
Long2BooleanMapcontainsValue in interface Long2BooleanMapcontainsValue in class AbstractLong2BooleanMapvalue - element that is searched forpublic boolean get(long key)
Long2BooleanMapget in interface Long2BooleanFunctionget in interface Long2BooleanMapkey - the key that is searched forpublic boolean remove(long key)
Long2BooleanMapremove in interface Long2BooleanMapkey - the element that should be removedpublic boolean removeOrDefault(long key,
boolean defaultValue)
Long2BooleanMapremoveOrDefault in interface 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)
Long2BooleanMapremove in interface Long2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(long key,
boolean oldValue,
boolean newValue)
Long2BooleanMapreplace in interface Long2BooleanMapreplace in class AbstractLong2BooleanMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public boolean replace(long key,
boolean value)
Long2BooleanMapreplace in interface Long2BooleanMapreplace in class AbstractLong2BooleanMapkey - the element that should be searched forvalue - the value to replace with.public void replaceBooleans(Long2BooleanMap m)
Long2BooleanMapreplaceBooleans in interface Long2BooleanMapreplaceBooleans in class AbstractLong2BooleanMapm - elements that should be replaced.public void replaceBooleans(LongBooleanUnaryOperator mappingFunction)
Long2BooleanMapreplaceBooleans in interface Long2BooleanMapreplaceBooleans in class AbstractLong2BooleanMapmappingFunction - operation to replace all valuespublic boolean computeBoolean(long key,
LongBooleanUnaryOperator mappingFunction)
Long2BooleanMapcomputeBoolean in interface Long2BooleanMapcomputeBoolean in class AbstractLong2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(long key,
Long2BooleanFunction mappingFunction)
Long2BooleanMapcomputeBooleanIfAbsent in interface Long2BooleanMapcomputeBooleanIfAbsent in class AbstractLong2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean computeBooleanIfPresent(long key,
LongBooleanUnaryOperator mappingFunction)
Long2BooleanMapcomputeBooleanIfPresent in interface Long2BooleanMapcomputeBooleanIfPresent in class AbstractLong2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean supplyBooleanIfAbsent(long key,
BooleanSupplier valueProvider)
Long2BooleanMapsupplyBooleanIfAbsent in interface Long2BooleanMapsupplyBooleanIfAbsent in class AbstractLong2BooleanMapkey - the key that should be computedvalueProvider - the value if not presentpublic boolean mergeBoolean(long key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
Long2BooleanMapmergeBoolean in interface Long2BooleanMapmergeBoolean in class AbstractLong2BooleanMapkey - 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(Long2BooleanMap m, BooleanBooleanUnaryOperator mappingFunction)
Long2BooleanMapmergeAllBoolean in interface Long2BooleanMapmergeAllBoolean in class AbstractLong2BooleanMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic 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 void forEach(LongBooleanConsumer action)
Long2BooleanMapforEach in interface Long2BooleanMapforEach in class AbstractLong2BooleanMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Long,java.lang.Boolean>size in class java.util.AbstractMap<java.lang.Long,java.lang.Boolean>public Long2BooleanMap copy()
Long2BooleanMapcopy in interface Long2BooleanMapcopy in class AbstractLong2BooleanMappublic 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()
Long2BooleanMaplong2BooleanEntrySet in interface Long2BooleanMap@Deprecated public java.lang.Boolean get(java.lang.Object key)
get in interface java.util.Map<java.lang.Long,java.lang.Boolean>get in interface Long2BooleanMapget in class AbstractLong2BooleanMap@Deprecated
public java.lang.Boolean getOrDefault(java.lang.Object key,
java.lang.Boolean defaultValue)
getOrDefault in interface java.util.Map<java.lang.Long,java.lang.Boolean>getOrDefault in interface Long2BooleanMapgetOrDefault in class AbstractLong2BooleanMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Long,java.lang.Boolean>containsValue in interface Long2BooleanMapcontainsValue in class java.util.AbstractMap<java.lang.Long,java.lang.Boolean>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Long,java.lang.Boolean>containsKey in interface Long2BooleanMapcontainsKey in class java.util.AbstractMap<java.lang.Long,java.lang.Boolean>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Boolean put(java.lang.Long key,
java.lang.Boolean value)
put in interface java.util.Map<java.lang.Long,java.lang.Boolean>put in interface Long2BooleanMapput in class AbstractLong2BooleanMap@Deprecated public java.lang.Boolean remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Long,java.lang.Boolean>remove in interface Long2BooleanMapremove in class AbstractLong2BooleanMapkey - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Long,java.lang.Boolean>clear in class java.util.AbstractMap<java.lang.Long,java.lang.Boolean>@Deprecated
public java.lang.Boolean putIfAbsent(java.lang.Long key,
java.lang.Boolean value)
putIfAbsent in interface java.util.Map<java.lang.Long,java.lang.Boolean>putIfAbsent in interface Long2BooleanMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Long,java.lang.Boolean>remove in interface Long2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Long key,
java.lang.Boolean oldValue,
java.lang.Boolean newValue)
replace in interface java.util.Map<java.lang.Long,java.lang.Boolean>replace in interface Long2BooleanMap@Deprecated
public java.lang.Boolean replace(java.lang.Long key,
java.lang.Boolean value)
replace in interface java.util.Map<java.lang.Long,java.lang.Boolean>replace in interface Long2BooleanMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Long,java.lang.Boolean>replaceAll in interface Long2BooleanMap@Deprecated
public java.lang.Boolean compute(java.lang.Long key,
java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
compute in interface java.util.Map<java.lang.Long,java.lang.Boolean>compute in interface Long2BooleanMap@Deprecated
public java.lang.Boolean computeIfAbsent(java.lang.Long key,
java.util.function.Function<? super java.lang.Long,? extends java.lang.Boolean> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Long,java.lang.Boolean>computeIfAbsent in interface Long2BooleanMap@Deprecated
public java.lang.Boolean computeIfPresent(java.lang.Long key,
java.util.function.BiFunction<? super java.lang.Long,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Long,java.lang.Boolean>computeIfPresent in interface Long2BooleanMap@Deprecated
public java.lang.Boolean merge(java.lang.Long key,
java.lang.Boolean value,
java.util.function.BiFunction<? super java.lang.Boolean,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
merge in interface java.util.Map<java.lang.Long,java.lang.Boolean>merge in interface Long2BooleanMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Long,? super java.lang.Boolean> action)
forEach in interface java.util.Map<java.lang.Long,java.lang.Boolean>forEach in interface Long2BooleanMap