public class Short2FloatLinkedOpenHashMap extends Short2FloatOpenHashMap implements Short2FloatSortedMap
AbstractShort2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2FloatSortedMap.FastSortedSetShort2FloatMap.Entry, Short2FloatMap.FastEntrySet| Constructor and Description |
|---|
Short2FloatLinkedOpenHashMap()
Default Constructor
|
Short2FloatLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Short2FloatLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Short2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Float> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Float> map,
float loadFactor)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2FloatLinkedOpenHashMap(short[] keys,
float[] values)
Helper constructor that allow to create a map from unboxed values
|
Short2FloatLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Float[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2FloatLinkedOpenHashMap(short[] keys,
float[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Short2FloatLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Float[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2FloatLinkedOpenHashMap(Short2FloatMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2FloatLinkedOpenHashMap(Short2FloatMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
| 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 Short2FloatLinkedOpenHashMap()
public Short2FloatLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Short2FloatLinkedOpenHashMap(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 Short2FloatLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Float[] 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 Short2FloatLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Float[] 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 Short2FloatLinkedOpenHashMap(short[] keys,
float[] 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 Short2FloatLinkedOpenHashMap(short[] keys,
float[] 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 Short2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Float> map)
map - the values that should be present in the mappublic Short2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Float> 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 Short2FloatLinkedOpenHashMap(Short2FloatMap map)
map - the values that should be present in the mappublic Short2FloatLinkedOpenHashMap(Short2FloatMap 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 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 Short2FloatOpenHashMappublic 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 Short2FloatOpenHashMappublic 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 Short2FloatOpenHashMappublic void forEach(ShortFloatConsumer action)
Short2FloatMapforEach in interface Short2FloatMapforEach in class Short2FloatOpenHashMapaction - 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 Short2FloatOpenHashMap