public interface Float2BooleanMap extends java.util.Map<java.lang.Float,java.lang.Boolean>, Float2BooleanFunction
| Modifier and Type | Interface and Description |
|---|---|
static class |
Float2BooleanMap.BuilderCache
Builder Cache for allowing to buildMaps
|
static interface |
Float2BooleanMap.Entry
Type Specific Map Entry that reduces boxing/unboxing
|
static interface |
Float2BooleanMap.FastEntrySet
Fast Entry set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
static class |
Float2BooleanMap.MapBuilder
Helper class that reduces the method spam of the Map Class.
|
| Modifier and Type | Method and Description |
|---|---|
static Float2BooleanMap.MapBuilder |
builder()
Helper Class that allows to create Maps without requiring a to type out the entire implementation or know it.
|
default java.lang.Boolean |
compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
boolean |
computeBoolean(float key,
FloatBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(float key,
Float2BooleanFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(float key,
FloatBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
default java.lang.Boolean |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
default java.lang.Boolean |
computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(boolean value)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsValue(java.lang.Object value) |
Float2BooleanMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Boolean>> |
entrySet()
Deprecated.
|
ObjectSet<Float2BooleanMap.Entry> |
float2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
default void |
forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Boolean> action)
Deprecated.
|
void |
forEach(FloatBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
get(float key)
A Type Specific get method to reduce boxing/unboxing
|
default java.lang.Boolean |
get(java.lang.Object key)
Deprecated.
|
boolean |
getDefaultReturnValue()
Method to see what the default return value is.
|
boolean |
getOrDefault(float key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
default java.lang.Boolean |
getOrDefault(java.lang.Object key,
java.lang.Boolean defaultValue)
Deprecated.
|
FloatSet |
keySet() |
default java.lang.Boolean |
merge(java.lang.Float 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(Float2BooleanMap m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(float key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
put(float key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
default java.lang.Boolean |
put(java.lang.Float key,
java.lang.Boolean value)
Deprecated.
|
default void |
putAll(float[] keys,
boolean[] values)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
default void |
putAll(java.lang.Float[] keys,
java.lang.Boolean[] values)
Type Specific Object array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(float[] 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.Float[] 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(Float2BooleanMap m)
Type Specific function for the bull putting of values
|
void |
putAllIfAbsent(Float2BooleanMap m)
Type-Specific bulk put method put elements into the map if not present.
|
boolean |
putIfAbsent(float key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
default java.lang.Boolean |
putIfAbsent(java.lang.Float key,
java.lang.Boolean value)
Deprecated.
|
boolean |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
default java.lang.Boolean |
remove(java.lang.Object key) |
default boolean |
remove(java.lang.Object key,
java.lang.Object value) |
boolean |
removeOrDefault(float key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
replace(float key,
boolean value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
default java.lang.Boolean |
replace(java.lang.Float key,
java.lang.Boolean value)
Deprecated.
|
boolean |
replace(float key,
boolean oldValue,
boolean newValue)
A Type Specific replace method to replace an existing value
|
default boolean |
replace(java.lang.Float key,
java.lang.Boolean oldValue,
java.lang.Boolean newValue)
Deprecated.
|
default void |
replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
Deprecated.
|
void |
replaceBooleans(Float2BooleanMap m)
Type-Specific bulk replace method.
|
void |
replaceBooleans(FloatBooleanUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
Float2BooleanMap |
setDefaultReturnValue(boolean v)
Method to define the default return value if a requested key isn't present
|
boolean |
supplyBooleanIfAbsent(float key,
BooleanSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
default Float2BooleanMap |
synchronize()
Creates a Wrapped Map that is Synchronized
|
default Float2BooleanMap |
synchronize(java.lang.Object mutex)
Creates a Wrapped Map that is Synchronized
|
default Float2BooleanMap |
unmodifiable()
Creates a Wrapped Map that is unmodifiable
|
BooleanCollection |
values() |
static Float2BooleanMap.MapBuilder builder()
boolean getDefaultReturnValue()
Float2BooleanMap setDefaultReturnValue(boolean v)
v - value that should be the default return valueFloat2BooleanMap copy()
boolean put(float key,
boolean value)
key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)default void putAll(float[] keys,
boolean[] values)
keys - the keys that should be addedvalues - the values that should be addedjava.lang.IllegalStateException - if the arrays are not the same sizeMap.putAll(Map)void putAll(float[] keys,
boolean[] values,
int offset,
int size)
keys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedjava.lang.IllegalStateException - if the arrays are not within the rangeMap.putAll(Map)default void putAll(java.lang.Float[] keys,
java.lang.Boolean[] values)
keys - the keys that should be addedvalues - the values that should be addedjava.lang.IllegalStateException - if the arrays are not the same sizeMap.putAll(Map)void putAll(java.lang.Float[] keys,
java.lang.Boolean[] values,
int offset,
int size)
keys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedjava.lang.IllegalStateException - if the arrays are not within the rangeMap.putAll(Map)boolean putIfAbsent(float key,
boolean value)
key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)void putAllIfAbsent(Float2BooleanMap m)
m - elements that should be added if not present.void putAll(Float2BooleanMap m)
m - the elements that should be insertedboolean containsKey(float key)
key - element that is searched fordefault boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Float,java.lang.Boolean>key - that is searched for.Map.containsKey(Object)boolean containsValue(boolean value)
value - element that is searched fordefault boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Boolean>value - that is searched for.Map.containsValue(Object)boolean remove(float key)
key - the element that should be removeddefault java.lang.Boolean remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Boolean>key - the element that should be removedMap.remove(Object)boolean remove(float key,
boolean value)
key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)default boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,java.lang.Boolean>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)boolean removeOrDefault(float key,
boolean defaultValue)
key - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)boolean replace(float key,
boolean oldValue,
boolean newValue)
key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.boolean replace(float key,
boolean value)
key - the element that should be searched forvalue - the value to replace with.void replaceBooleans(Float2BooleanMap m)
m - elements that should be replaced.void replaceBooleans(FloatBooleanUnaryOperator mappingFunction)
mappingFunction - operation to replace all valuesboolean computeBoolean(float key,
FloatBooleanUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the valueboolean computeBooleanIfAbsent(float key,
Float2BooleanFunction mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if not presentboolean supplyBooleanIfAbsent(float key,
BooleanSupplier valueProvider)
key - the key that should be computedvalueProvider - the value if not presentboolean computeBooleanIfPresent(float key,
FloatBooleanUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if presentboolean mergeBoolean(float key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
key - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuevoid mergeAllBoolean(Float2BooleanMap m, BooleanBooleanUnaryOperator mappingFunction)
m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Value@Deprecated
default boolean replace(java.lang.Float key,
java.lang.Boolean oldValue,
java.lang.Boolean newValue)
replace in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated
default java.lang.Boolean replace(java.lang.Float key,
java.lang.Boolean value)
replace in interface java.util.Map<java.lang.Float,java.lang.Boolean>boolean get(float key)
get in interface Float2BooleanFunctionkey - the key that is searched forboolean getOrDefault(float key,
boolean defaultValue)
key - the key that is searched fordefaultValue - the value that should be returned if the key is not present@Deprecated default java.lang.Boolean get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated
default java.lang.Boolean getOrDefault(java.lang.Object key,
java.lang.Boolean defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated default void replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated
default java.lang.Boolean compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
compute in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated
default java.lang.Boolean computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Boolean> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated
default java.lang.Boolean computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Boolean,? extends java.lang.Boolean> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated
default java.lang.Boolean merge(java.lang.Float 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.Float,java.lang.Boolean>void forEach(FloatBooleanConsumer action)
action - processor of the values that are iterator over@Deprecated default void forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Boolean> action)
forEach in interface java.util.Map<java.lang.Float,java.lang.Boolean>FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Boolean>BooleanCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Boolean>> entrySet()
entrySet in interface java.util.Map<java.lang.Float,java.lang.Boolean>ObjectSet<Float2BooleanMap.Entry> float2BooleanEntrySet()
default Float2BooleanMap synchronize()
Float2BooleanMaps.synchronize(speiger.src.collections.floats.maps.interfaces.Float2BooleanMap)default Float2BooleanMap synchronize(java.lang.Object mutex)
mutex - is the controller of the synchronization blockFloat2BooleanMaps.synchronize(speiger.src.collections.floats.maps.interfaces.Float2BooleanMap)default Float2BooleanMap unmodifiable()
Float2BooleanMaps.unmodifiable(speiger.src.collections.floats.maps.interfaces.Float2BooleanMap)@Deprecated
default java.lang.Boolean put(java.lang.Float key,
java.lang.Boolean value)
put in interface java.util.Map<java.lang.Float,java.lang.Boolean>@Deprecated
default java.lang.Boolean putIfAbsent(java.lang.Float key,
java.lang.Boolean value)
putIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Boolean>