public class Float2ShortLinkedOpenCustomHashMap extends Float2ShortOpenCustomHashMap implements Float2ShortSortedMap
AbstractFloat2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ShortSortedMap.FastSortedSetFloat2ShortMap.Entry, Float2ShortMap.FastEntrySet| Constructor and Description |
|---|
Float2ShortLinkedOpenCustomHashMap(float[] keys,
short[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2ShortLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Short[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2ShortLinkedOpenCustomHashMap(float[] keys,
short[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2ShortLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Short[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2ShortLinkedOpenCustomHashMap(Float2ShortMap 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.
|
Float2ShortLinkedOpenCustomHashMap(Float2ShortMap map,
FloatStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2ShortLinkedOpenCustomHashMap(FloatStrategy strategy)
Default Constructor
|
Float2ShortLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
FloatStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Float2ShortLinkedOpenCustomHashMap(int minCapacity,
FloatStrategy strategy)
Constructor that defines the minimum capacity
|
Float2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Short> map,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Short> 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.
|
short |
firstShortValue()
A method to get the first Value of a Map.
|
ObjectSet<Float2ShortMap.Entry> |
float2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatShortConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
short |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
short |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
Float2ShortSortedMap |
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.
|
short |
lastShortValue()
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.
|
short |
putAndMoveToFirst(float key,
short value)
A customized put method that allows you to insert into the first index.
|
short |
putAndMoveToLast(float key,
short value)
A customized put method that allows you to insert into the last index.
|
Float2ShortSortedMap |
subMap(float fromKey,
float toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2ShortSortedMap |
tailMap(float fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ShortCollection |
values() |
addTo, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, get, getOrDefault, getShort, mergeAllShort, mergeShort, put, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceShorts, replaceShorts, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getOrDefault, getOrDefault, getShort, merge, mergeAllShort, mergeShort, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceShorts, replaceShorts, setDefaultReturnValuepublic Float2ShortLinkedOpenCustomHashMap(FloatStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2ShortLinkedOpenCustomHashMap(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 Float2ShortLinkedOpenCustomHashMap(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 Float2ShortLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Short[] 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 Float2ShortLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Short[] 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 Float2ShortLinkedOpenCustomHashMap(float[] keys,
short[] 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 Float2ShortLinkedOpenCustomHashMap(float[] keys,
short[] 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 Float2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Short> 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 Float2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Short> 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 Float2ShortLinkedOpenCustomHashMap(Float2ShortMap 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 Float2ShortLinkedOpenCustomHashMap(Float2ShortMap 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 short putAndMoveToFirst(float key,
short value)
Float2ShortSortedMapputAndMoveToFirst in interface Float2ShortSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public short putAndMoveToLast(float key,
short value)
Float2ShortSortedMapputAndMoveToLast in interface Float2ShortSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2ShortSortedMapmoveToFirst in interface Float2ShortSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2ShortSortedMapmoveToLast in interface Float2ShortSortedMapkey - that should be moved to the first lastpublic short getAndMoveToFirst(float key)
Float2ShortSortedMapgetAndMoveToFirst in interface Float2ShortSortedMapkey - that is searched forpublic short getAndMoveToLast(float key)
Float2ShortSortedMapgetAndMoveToLast in interface Float2ShortSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Short>comparator in interface Float2ShortSortedMappublic Float2ShortSortedMap subMap(float fromKey, float toKey)
Float2ShortSortedMapsubMap in interface Float2ShortSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Float2ShortSortedMap headMap(float toKey)
Float2ShortSortedMapheadMap in interface Float2ShortSortedMaptoKey - where the headMap should endpublic Float2ShortSortedMap tailMap(float fromKey)
Float2ShortSortedMaptailMap in interface Float2ShortSortedMapfromKey - where the TailMap should startpublic float firstFloatKey()
Float2ShortSortedMapfirstFloatKey in interface Float2ShortSortedMappublic float pollFirstFloatKey()
Float2ShortSortedMappollFirstFloatKey in interface Float2ShortSortedMappublic float lastFloatKey()
Float2ShortSortedMaplastFloatKey in interface Float2ShortSortedMappublic float pollLastFloatKey()
Float2ShortSortedMappollLastFloatKey in interface Float2ShortSortedMappublic short firstShortValue()
Float2ShortSortedMapfirstShortValue in interface Float2ShortSortedMappublic short lastShortValue()
Float2ShortSortedMaplastShortValue in interface Float2ShortSortedMappublic ObjectSet<Float2ShortMap.Entry> float2ShortEntrySet()
Float2ShortMapfloat2ShortEntrySet in interface Float2ShortMapfloat2ShortEntrySet in class Float2ShortOpenCustomHashMappublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Short>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Short>keySet in interface Float2ShortMapkeySet in interface Float2ShortSortedMapkeySet in class Float2ShortOpenCustomHashMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Short>values in interface java.util.SortedMap<java.lang.Float,java.lang.Short>values in interface Float2ShortMapvalues in interface Float2ShortSortedMapvalues in class Float2ShortOpenCustomHashMappublic void forEach(FloatShortConsumer action)
Float2ShortMapforEach in interface Float2ShortMapforEach in class Float2ShortOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Short>clear in class Float2ShortOpenCustomHashMap