public class Short2FloatLinkedOpenCustomHashMap extends Short2FloatOpenCustomHashMap implements Short2FloatSortedMap
AbstractShort2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2FloatSortedMap.FastSortedSetShort2FloatMap.Entry, Short2FloatMap.FastEntrySet| Constructor and Description |
|---|
Short2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ShortStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Short2FloatLinkedOpenCustomHashMap(int minCapacity,
ShortStrategy strategy)
Constructor that defines the minimum capacity
|
Short2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Float> map,
float loadFactor,
ShortStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Float> map,
ShortStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2FloatLinkedOpenCustomHashMap(short[] keys,
float[] values,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Short2FloatLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Float[] values,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2FloatLinkedOpenCustomHashMap(short[] keys,
float[] values,
ShortStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Short2FloatLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Float[] values,
ShortStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2FloatLinkedOpenCustomHashMap(Short2FloatMap map,
float loadFactor,
ShortStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2FloatLinkedOpenCustomHashMap(Short2FloatMap map,
ShortStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2FloatLinkedOpenCustomHashMap(ShortStrategy strategy)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
ShortComparator |
comparator() |
float |
firstFloatValue()
A method to get the first Value of a Map.
|
short |
firstShortKey()
A method to get the first Key of a Map.
|
void |
forEach(ShortFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
getAndMoveToFirst(short key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
getAndMoveToLast(short key)
A Specific get method that allows to move teh given key/value int the last index.
|
Short2FloatSortedMap |
headMap(short toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ShortSet |
keySet() |
float |
lastFloatValue()
A method to get the last Value of a Map.
|
short |
lastShortKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(short key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(short key)
A specific move method to move a given key/value to the last index.
|
short |
pollFirstShortKey()
A method to get and remove the first Key of a Map.
|
short |
pollLastShortKey()
A method to get and remove the last Key of a Map.
|
float |
putAndMoveToFirst(short key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(short key,
float value)
A customized put method that allows you to insert into the last index.
|
ObjectSet<Short2FloatMap.Entry> |
short2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Short2FloatSortedMap |
subMap(short fromKey,
short toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Short2FloatSortedMap |
tailMap(short 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, remove, remove, remove, remShort, remShortOrDefault, 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, remove, remove, remove, remShort, remShortOrDefault, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValuepublic Short2FloatLinkedOpenCustomHashMap(ShortStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2FloatLinkedOpenCustomHashMap(int minCapacity,
ShortStrategy 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 Short2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ShortStrategy 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 Short2FloatLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Float[] values,
ShortStrategy 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 Short2FloatLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Float[] values,
float loadFactor,
ShortStrategy 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 Short2FloatLinkedOpenCustomHashMap(short[] keys,
float[] values,
ShortStrategy 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 Short2FloatLinkedOpenCustomHashMap(short[] keys,
float[] values,
float loadFactor,
ShortStrategy 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 Short2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Float> map,
ShortStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Float> map,
float loadFactor,
ShortStrategy 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 Short2FloatLinkedOpenCustomHashMap(Short2FloatMap map, ShortStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2FloatLinkedOpenCustomHashMap(Short2FloatMap map, float loadFactor, ShortStrategy 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(short key,
float value)
Short2FloatSortedMapputAndMoveToFirst in interface Short2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(short key,
float value)
Short2FloatSortedMapputAndMoveToLast in interface Short2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(short key)
Short2FloatSortedMapmoveToFirst in interface Short2FloatSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(short key)
Short2FloatSortedMapmoveToLast in interface Short2FloatSortedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(short key)
Short2FloatSortedMapgetAndMoveToFirst in interface Short2FloatSortedMapkey - that is searched forpublic float getAndMoveToLast(short key)
Short2FloatSortedMapgetAndMoveToLast in interface Short2FloatSortedMapkey - that is searched forpublic ShortComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Short,java.lang.Float>comparator in interface Short2FloatSortedMappublic Short2FloatSortedMap subMap(short fromKey, short toKey)
Short2FloatSortedMapsubMap in interface Short2FloatSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Short2FloatSortedMap headMap(short toKey)
Short2FloatSortedMapheadMap in interface Short2FloatSortedMaptoKey - where the headMap should endpublic Short2FloatSortedMap tailMap(short fromKey)
Short2FloatSortedMaptailMap in interface Short2FloatSortedMapfromKey - where the TailMap should startpublic short firstShortKey()
Short2FloatSortedMapfirstShortKey in interface Short2FloatSortedMappublic short pollFirstShortKey()
Short2FloatSortedMappollFirstShortKey in interface Short2FloatSortedMappublic short lastShortKey()
Short2FloatSortedMaplastShortKey in interface Short2FloatSortedMappublic short pollLastShortKey()
Short2FloatSortedMappollLastShortKey in interface Short2FloatSortedMappublic float firstFloatValue()
Short2FloatSortedMapfirstFloatValue in interface Short2FloatSortedMappublic float lastFloatValue()
Short2FloatSortedMaplastFloatValue in interface Short2FloatSortedMappublic ObjectSet<Short2FloatMap.Entry> short2FloatEntrySet()
Short2FloatMapshort2FloatEntrySet in interface Short2FloatMapshort2FloatEntrySet in class Short2FloatOpenCustomHashMappublic ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Float>keySet in interface java.util.SortedMap<java.lang.Short,java.lang.Float>keySet in interface Short2FloatMapkeySet in interface Short2FloatSortedMapkeySet in class Short2FloatOpenCustomHashMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Float>values in interface java.util.SortedMap<java.lang.Short,java.lang.Float>values in interface Short2FloatMapvalues in interface Short2FloatSortedMapvalues in class Short2FloatOpenCustomHashMappublic void forEach(ShortFloatConsumer action)
Short2FloatMapforEach in interface Short2FloatMapforEach in class Short2FloatOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Short,java.lang.Float>clear in class Short2FloatOpenCustomHashMap