public class Long2FloatLinkedOpenCustomHashMap extends Long2FloatOpenCustomHashMap implements Long2FloatSortedMap
AbstractLong2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2FloatSortedMap.FastSortedSetLong2FloatMap.Entry, Long2FloatMap.FastEntrySet| Constructor and Description |
|---|
Long2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
LongStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Long2FloatLinkedOpenCustomHashMap(int minCapacity,
LongStrategy strategy)
Constructor that defines the minimum capacity
|
Long2FloatLinkedOpenCustomHashMap(long[] keys,
float[] values,
float loadFactor,
LongStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Long2FloatLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Float[] values,
float loadFactor,
LongStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2FloatLinkedOpenCustomHashMap(long[] keys,
float[] values,
LongStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Long2FloatLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Float[] values,
LongStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2FloatLinkedOpenCustomHashMap(Long2FloatMap map,
float loadFactor,
LongStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2FloatLinkedOpenCustomHashMap(Long2FloatMap map,
LongStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2FloatLinkedOpenCustomHashMap(LongStrategy strategy)
Default Constructor
|
Long2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Float> map,
float loadFactor,
LongStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Long2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Float> map,
LongStrategy 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() |
LongComparator |
comparator() |
float |
firstFloatValue()
A method to get the first Value of a Map.
|
long |
firstLongKey()
A method to get the first Key of a Map.
|
void |
forEach(LongFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
getAndMoveToFirst(long key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
getAndMoveToLast(long key)
A Specific get method that allows to move teh given key/value int the last index.
|
Long2FloatSortedMap |
headMap(long toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
LongSet |
keySet() |
float |
lastFloatValue()
A method to get the last Value of a Map.
|
long |
lastLongKey()
A method to get the last Key of a Map.
|
ObjectSet<Long2FloatMap.Entry> |
long2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
moveToFirst(long key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(long key)
A specific move method to move a given key/value to the last index.
|
long |
pollFirstLongKey()
A method to get and remove the first Key of a Map.
|
long |
pollLastLongKey()
A method to get and remove the last Key of a Map.
|
float |
putAndMoveToFirst(long key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(long key,
float value)
A customized put method that allows you to insert into the last index.
|
Long2FloatSortedMap |
subMap(long fromKey,
long toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Long2FloatSortedMap |
tailMap(long fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
FloatCollection |
values() |
addTo, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsKey, containsValue, containsValue, get, getFloat, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, remLong, remLongOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getFloat, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remLong, remLongOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValuepublic Long2FloatLinkedOpenCustomHashMap(LongStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2FloatLinkedOpenCustomHashMap(int minCapacity,
LongStrategy 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 Long2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
LongStrategy 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 Long2FloatLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Float[] values,
LongStrategy 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 Long2FloatLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Float[] values,
float loadFactor,
LongStrategy 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 Long2FloatLinkedOpenCustomHashMap(long[] keys,
float[] values,
LongStrategy 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 Long2FloatLinkedOpenCustomHashMap(long[] keys,
float[] values,
float loadFactor,
LongStrategy 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 Long2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Float> map,
LongStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Float> map,
float loadFactor,
LongStrategy 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 Long2FloatLinkedOpenCustomHashMap(Long2FloatMap map, LongStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2FloatLinkedOpenCustomHashMap(Long2FloatMap map, float loadFactor, LongStrategy 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 float putAndMoveToFirst(long key,
float value)
Long2FloatSortedMapputAndMoveToFirst in interface Long2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(long key,
float value)
Long2FloatSortedMapputAndMoveToLast in interface Long2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(long key)
Long2FloatSortedMapmoveToFirst in interface Long2FloatSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(long key)
Long2FloatSortedMapmoveToLast in interface Long2FloatSortedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(long key)
Long2FloatSortedMapgetAndMoveToFirst in interface Long2FloatSortedMapkey - that is searched forpublic float getAndMoveToLast(long key)
Long2FloatSortedMapgetAndMoveToLast in interface Long2FloatSortedMapkey - that is searched forpublic LongComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Long,java.lang.Float>comparator in interface Long2FloatSortedMappublic Long2FloatSortedMap subMap(long fromKey, long toKey)
Long2FloatSortedMapsubMap in interface Long2FloatSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Long2FloatSortedMap headMap(long toKey)
Long2FloatSortedMapheadMap in interface Long2FloatSortedMaptoKey - where the headMap should endpublic Long2FloatSortedMap tailMap(long fromKey)
Long2FloatSortedMaptailMap in interface Long2FloatSortedMapfromKey - where the TailMap should startpublic long firstLongKey()
Long2FloatSortedMapfirstLongKey in interface Long2FloatSortedMappublic long pollFirstLongKey()
Long2FloatSortedMappollFirstLongKey in interface Long2FloatSortedMappublic long lastLongKey()
Long2FloatSortedMaplastLongKey in interface Long2FloatSortedMappublic long pollLastLongKey()
Long2FloatSortedMappollLastLongKey in interface Long2FloatSortedMappublic float firstFloatValue()
Long2FloatSortedMapfirstFloatValue in interface Long2FloatSortedMappublic float lastFloatValue()
Long2FloatSortedMaplastFloatValue in interface Long2FloatSortedMappublic ObjectSet<Long2FloatMap.Entry> long2FloatEntrySet()
Long2FloatMaplong2FloatEntrySet in interface Long2FloatMaplong2FloatEntrySet in class Long2FloatOpenCustomHashMappublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Float>keySet in interface java.util.SortedMap<java.lang.Long,java.lang.Float>keySet in interface Long2FloatMapkeySet in interface Long2FloatSortedMapkeySet in class Long2FloatOpenCustomHashMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Float>values in interface java.util.SortedMap<java.lang.Long,java.lang.Float>values in interface Long2FloatMapvalues in interface Long2FloatSortedMapvalues in class Long2FloatOpenCustomHashMappublic void forEach(LongFloatConsumer action)
Long2FloatMapforEach in interface Long2FloatMapforEach in class Long2FloatOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Long,java.lang.Float>clear in class Long2FloatOpenCustomHashMap