public class Float2BooleanLinkedOpenCustomHashMap extends Float2BooleanOpenCustomHashMap implements Float2BooleanSortedMap
AbstractFloat2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2BooleanSortedMap.FastSortedSetFloat2BooleanMap.Entry, Float2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Float2BooleanLinkedOpenCustomHashMap(float[] keys,
boolean[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2BooleanLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Boolean[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2BooleanLinkedOpenCustomHashMap(float[] keys,
boolean[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2BooleanLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Boolean[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2BooleanLinkedOpenCustomHashMap(Float2BooleanMap map,
float loadFactor,
FloatStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2BooleanLinkedOpenCustomHashMap(Float2BooleanMap map,
FloatStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2BooleanLinkedOpenCustomHashMap(FloatStrategy strategy)
Default Constructor
|
Float2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
FloatStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Float2BooleanLinkedOpenCustomHashMap(int minCapacity,
FloatStrategy strategy)
Constructor that defines the minimum capacity
|
Float2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map,
FloatStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
FloatComparator |
comparator() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
float |
firstFloatKey()
A method to get the first Key of a Map.
|
ObjectSet<Float2BooleanMap.Entry> |
float2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
Float2BooleanSortedMap |
headMap(float toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
FloatSet |
keySet() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
float |
lastFloatKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(float key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(float key)
A specific move method to move a given key/value to the last index.
|
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
boolean |
putAndMoveToFirst(float key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(float key,
boolean value)
A customized put method that allows you to insert into the last index.
|
Float2BooleanSortedMap |
subMap(float fromKey,
float toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2BooleanSortedMap |
tailMap(float fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsKey, containsValue, containsValue, get, getBoolean, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, sizeentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapcompute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getBoolean, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic Float2BooleanLinkedOpenCustomHashMap(FloatStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2BooleanLinkedOpenCustomHashMap(int minCapacity,
FloatStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativepublic Float2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
FloatStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Float2BooleanLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Boolean[] values,
FloatStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Float2BooleanLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Boolean[] values,
float loadFactor,
FloatStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtjava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Float2BooleanLinkedOpenCustomHashMap(float[] keys,
boolean[] values,
FloatStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Float2BooleanLinkedOpenCustomHashMap(float[] keys,
boolean[] values,
float loadFactor,
FloatStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtjava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Float2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map,
FloatStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map,
float loadFactor,
FloatStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Float2BooleanLinkedOpenCustomHashMap(Float2BooleanMap map, FloatStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2BooleanLinkedOpenCustomHashMap(Float2BooleanMap map, float loadFactor, FloatStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public boolean putAndMoveToFirst(float key,
boolean value)
Float2BooleanSortedMapputAndMoveToFirst in interface Float2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(float key,
boolean value)
Float2BooleanSortedMapputAndMoveToLast in interface Float2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2BooleanSortedMapmoveToFirst in interface Float2BooleanSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2BooleanSortedMapmoveToLast in interface Float2BooleanSortedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(float key)
Float2BooleanSortedMapgetAndMoveToFirst in interface Float2BooleanSortedMapkey - that is searched forpublic boolean getAndMoveToLast(float key)
Float2BooleanSortedMapgetAndMoveToLast in interface Float2BooleanSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Boolean>comparator in interface Float2BooleanSortedMappublic Float2BooleanSortedMap subMap(float fromKey, float toKey)
Float2BooleanSortedMapsubMap in interface Float2BooleanSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Float2BooleanSortedMap headMap(float toKey)
Float2BooleanSortedMapheadMap in interface Float2BooleanSortedMaptoKey - where the headMap should endpublic Float2BooleanSortedMap tailMap(float fromKey)
Float2BooleanSortedMaptailMap in interface Float2BooleanSortedMapfromKey - where the TailMap should startpublic float firstFloatKey()
Float2BooleanSortedMapfirstFloatKey in interface Float2BooleanSortedMappublic float pollFirstFloatKey()
Float2BooleanSortedMappollFirstFloatKey in interface Float2BooleanSortedMappublic float lastFloatKey()
Float2BooleanSortedMaplastFloatKey in interface Float2BooleanSortedMappublic float pollLastFloatKey()
Float2BooleanSortedMappollLastFloatKey in interface Float2BooleanSortedMappublic boolean firstBooleanValue()
Float2BooleanSortedMapfirstBooleanValue in interface Float2BooleanSortedMappublic boolean lastBooleanValue()
Float2BooleanSortedMaplastBooleanValue in interface Float2BooleanSortedMappublic ObjectSet<Float2BooleanMap.Entry> float2BooleanEntrySet()
Float2BooleanMapfloat2BooleanEntrySet in interface Float2BooleanMapfloat2BooleanEntrySet in class Float2BooleanOpenCustomHashMappublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Boolean>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Boolean>keySet in interface Float2BooleanMapkeySet in interface Float2BooleanSortedMapkeySet in class Float2BooleanOpenCustomHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Boolean>values in interface java.util.SortedMap<java.lang.Float,java.lang.Boolean>values in interface Float2BooleanMapvalues in interface Float2BooleanSortedMapvalues in class Float2BooleanOpenCustomHashMappublic void forEach(FloatBooleanConsumer action)
Float2BooleanMapforEach in interface Float2BooleanMapforEach in class Float2BooleanOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Boolean>clear in class Float2BooleanOpenCustomHashMap