public class Float2BooleanLinkedOpenCustomHashMap extends Float2BooleanOpenCustomHashMap implements Float2BooleanOrderedMap
AbstractFloat2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2BooleanOrderedMap.FastOrderedSetFloat2BooleanMap.BuilderCache, Float2BooleanMap.Entry, Float2BooleanMap.FastEntrySet, Float2BooleanMap.MapBuilder| 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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
Float2BooleanLinkedOpenCustomHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
float |
firstFloatKey()
A method to get the first Key of a Map.
|
ObjectOrderedSet<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.
|
FloatOrderedSet |
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.
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsKey, containsValue, containsValue, get, get, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, supplyBooleanIfAbsent, trimentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuesynchronize, synchronize, unmodifiablebuilder, compute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValue, supplyBooleanIfAbsentclearAndTrim, trimpublic 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)
Float2BooleanOrderedMapputAndMoveToFirst in interface Float2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(float key,
boolean value)
Float2BooleanOrderedMapputAndMoveToLast in interface Float2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2BooleanOrderedMapmoveToFirst in interface Float2BooleanOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2BooleanOrderedMapmoveToLast in interface Float2BooleanOrderedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(float key)
Float2BooleanOrderedMapgetAndMoveToFirst in interface Float2BooleanOrderedMapkey - that is searched forpublic boolean getAndMoveToLast(float key)
Float2BooleanOrderedMapgetAndMoveToLast in interface Float2BooleanOrderedMapkey - that is searched forpublic Float2BooleanLinkedOpenCustomHashMap copy()
Float2BooleanMapcopy in interface Float2BooleanMapcopy in interface Float2BooleanOrderedMapcopy in class Float2BooleanOpenCustomHashMappublic float firstFloatKey()
Float2BooleanOrderedMapfirstFloatKey in interface Float2BooleanOrderedMappublic float pollFirstFloatKey()
Float2BooleanOrderedMappollFirstFloatKey in interface Float2BooleanOrderedMappublic float lastFloatKey()
Float2BooleanOrderedMaplastFloatKey in interface Float2BooleanOrderedMappublic float pollLastFloatKey()
Float2BooleanOrderedMappollLastFloatKey in interface Float2BooleanOrderedMappublic boolean firstBooleanValue()
Float2BooleanOrderedMapfirstBooleanValue in interface Float2BooleanOrderedMappublic boolean lastBooleanValue()
Float2BooleanOrderedMaplastBooleanValue in interface Float2BooleanOrderedMappublic ObjectOrderedSet<Float2BooleanMap.Entry> float2BooleanEntrySet()
Float2BooleanMapfloat2BooleanEntrySet in interface Float2BooleanMapfloat2BooleanEntrySet in interface Float2BooleanOrderedMapfloat2BooleanEntrySet in class Float2BooleanOpenCustomHashMappublic FloatOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Boolean>keySet in interface Float2BooleanMapkeySet in interface Float2BooleanOrderedMapkeySet in class Float2BooleanOpenCustomHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Boolean>values in interface Float2BooleanMapvalues 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 Float2BooleanOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Float2BooleanOpenCustomHashMapsize - the amount of elements that should be allowed