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