public class Float2LongLinkedOpenCustomHashMap extends Float2LongOpenCustomHashMap implements Float2LongSortedMap
AbstractFloat2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2LongSortedMap.FastSortedSetFloat2LongMap.Entry, Float2LongMap.FastEntrySet| Constructor and Description |
|---|
Float2LongLinkedOpenCustomHashMap(float[] keys,
long[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2LongLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Long[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2LongLinkedOpenCustomHashMap(float[] keys,
long[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2LongLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Long[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2LongLinkedOpenCustomHashMap(Float2LongMap 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.
|
Float2LongLinkedOpenCustomHashMap(Float2LongMap map,
FloatStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2LongLinkedOpenCustomHashMap(FloatStrategy strategy)
Default Constructor
|
Float2LongLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
FloatStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Float2LongLinkedOpenCustomHashMap(int minCapacity,
FloatStrategy strategy)
Constructor that defines the minimum capacity
|
Float2LongLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> map,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2LongLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> 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() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
long |
firstLongValue()
A method to get the first Value of a Map.
|
ObjectSet<Float2LongMap.Entry> |
float2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatLongConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
long |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
long |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
Float2LongSortedMap |
headMap(float toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
FloatSet |
keySet() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
long |
lastLongValue()
A method to get the last Value 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.
|
long |
putAndMoveToFirst(float key,
long value)
A customized put method that allows you to insert into the first index.
|
long |
putAndMoveToLast(float key,
long value)
A customized put method that allows you to insert into the last index.
|
Float2LongSortedMap |
subMap(float fromKey,
float toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2LongSortedMap |
tailMap(float fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
LongCollection |
values() |
addTo, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, containsValue, containsValue, get, getLong, getOrDefault, mergeAllLong, mergeLong, put, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceLongs, replaceLongs, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getLong, getOrDefault, getOrDefault, merge, mergeAllLong, mergeLong, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceLongs, replaceLongs, setDefaultReturnValuepublic Float2LongLinkedOpenCustomHashMap(FloatStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2LongLinkedOpenCustomHashMap(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 Float2LongLinkedOpenCustomHashMap(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 Float2LongLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Long[] 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 Float2LongLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Long[] 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 Float2LongLinkedOpenCustomHashMap(float[] keys,
long[] 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 Float2LongLinkedOpenCustomHashMap(float[] keys,
long[] 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 Float2LongLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> 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 Float2LongLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> 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 Float2LongLinkedOpenCustomHashMap(Float2LongMap 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 Float2LongLinkedOpenCustomHashMap(Float2LongMap 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 long putAndMoveToFirst(float key,
long value)
Float2LongSortedMapputAndMoveToFirst in interface Float2LongSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public long putAndMoveToLast(float key,
long value)
Float2LongSortedMapputAndMoveToLast in interface Float2LongSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2LongSortedMapmoveToFirst in interface Float2LongSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2LongSortedMapmoveToLast in interface Float2LongSortedMapkey - that should be moved to the first lastpublic long getAndMoveToFirst(float key)
Float2LongSortedMapgetAndMoveToFirst in interface Float2LongSortedMapkey - that is searched forpublic long getAndMoveToLast(float key)
Float2LongSortedMapgetAndMoveToLast in interface Float2LongSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Long>comparator in interface Float2LongSortedMappublic Float2LongSortedMap subMap(float fromKey, float toKey)
Float2LongSortedMapsubMap in interface Float2LongSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Float2LongSortedMap headMap(float toKey)
Float2LongSortedMapheadMap in interface Float2LongSortedMaptoKey - where the headMap should endpublic Float2LongSortedMap tailMap(float fromKey)
Float2LongSortedMaptailMap in interface Float2LongSortedMapfromKey - where the TailMap should startpublic float firstFloatKey()
Float2LongSortedMapfirstFloatKey in interface Float2LongSortedMappublic float pollFirstFloatKey()
Float2LongSortedMappollFirstFloatKey in interface Float2LongSortedMappublic float lastFloatKey()
Float2LongSortedMaplastFloatKey in interface Float2LongSortedMappublic float pollLastFloatKey()
Float2LongSortedMappollLastFloatKey in interface Float2LongSortedMappublic long firstLongValue()
Float2LongSortedMapfirstLongValue in interface Float2LongSortedMappublic long lastLongValue()
Float2LongSortedMaplastLongValue in interface Float2LongSortedMappublic ObjectSet<Float2LongMap.Entry> float2LongEntrySet()
Float2LongMapfloat2LongEntrySet in interface Float2LongMapfloat2LongEntrySet in class Float2LongOpenCustomHashMappublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Long>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Long>keySet in interface Float2LongMapkeySet in interface Float2LongSortedMapkeySet in class Float2LongOpenCustomHashMappublic LongCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Long>values in interface java.util.SortedMap<java.lang.Float,java.lang.Long>values in interface Float2LongMapvalues in interface Float2LongSortedMapvalues in class Float2LongOpenCustomHashMappublic void forEach(FloatLongConsumer action)
Float2LongMapforEach in interface Float2LongMapforEach in class Float2LongOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Long>clear in class Float2LongOpenCustomHashMap