public class Float2BooleanLinkedOpenHashMap extends Float2BooleanOpenHashMap implements Float2BooleanSortedMap
AbstractFloat2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2BooleanSortedMap.FastSortedSetFloat2BooleanMap.Entry, Float2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Float2BooleanLinkedOpenHashMap()
Default Constructor
|
Float2BooleanLinkedOpenHashMap(float[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2BooleanLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2BooleanLinkedOpenHashMap(float[] keys,
boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Float2BooleanLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2BooleanLinkedOpenHashMap(Float2BooleanMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2BooleanLinkedOpenHashMap(Float2BooleanMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2BooleanLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Float2BooleanLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Float2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map,
float loadFactor)
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 Float2BooleanLinkedOpenHashMap()
public Float2BooleanLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Float2BooleanLinkedOpenHashMap(int minCapacity,
float loadFactor)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Float2BooleanLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Boolean[] values)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Float2BooleanLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Boolean[] values,
float loadFactor)
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 resizejava.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 Float2BooleanLinkedOpenHashMap(float[] keys,
boolean[] values)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Float2BooleanLinkedOpenHashMap(float[] keys,
boolean[] values,
float loadFactor)
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 resizejava.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 Float2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Float2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map,
float loadFactor)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Float2BooleanLinkedOpenHashMap(Float2BooleanMap map)
map - the values that should be present in the mappublic Float2BooleanLinkedOpenHashMap(Float2BooleanMap map, float loadFactor)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizejava.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 Float2BooleanOpenHashMappublic 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 Float2BooleanOpenHashMappublic 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 Float2BooleanOpenHashMappublic void forEach(FloatBooleanConsumer action)
Float2BooleanMapforEach in interface Float2BooleanMapforEach in class Float2BooleanOpenHashMapaction - 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 Float2BooleanOpenHashMap