public class Float2ShortLinkedOpenCustomHashMap extends Float2ShortOpenCustomHashMap implements Float2ShortOrderedMap
AbstractFloat2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ShortOrderedMap.FastOrderedSetFloat2ShortMap.BuilderCache, Float2ShortMap.Entry, Float2ShortMap.FastEntrySet, Float2ShortMap.MapBuilder| 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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
Float2ShortLinkedOpenCustomHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
float |
firstFloatKey()
A method to get the first Key of a Map.
|
short |
firstShortValue()
A method to get the first Value of a Map.
|
ObjectOrderedSet<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.
|
FloatOrderedSet |
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.
|
ShortCollection |
values() |
addTo, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, get, get, getOrDefault, mergeAllShort, mergeShort, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyShortIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceShorts, replaceShorts, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, applyAsShort, builder, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllShort, mergeShort, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceShorts, replaceShorts, setDefaultReturnValue, subFrom, supplyShortIfAbsentclearAndTrim, trimpublic 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)
Float2ShortOrderedMapputAndMoveToFirst in interface Float2ShortOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public short putAndMoveToLast(float key,
short value)
Float2ShortOrderedMapputAndMoveToLast in interface Float2ShortOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2ShortOrderedMapmoveToFirst in interface Float2ShortOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2ShortOrderedMapmoveToLast in interface Float2ShortOrderedMapkey - that should be moved to the first lastpublic short getAndMoveToFirst(float key)
Float2ShortOrderedMapgetAndMoveToFirst in interface Float2ShortOrderedMapkey - that is searched forpublic short getAndMoveToLast(float key)
Float2ShortOrderedMapgetAndMoveToLast in interface Float2ShortOrderedMapkey - that is searched forpublic Float2ShortLinkedOpenCustomHashMap copy()
Float2ShortMapcopy in interface Float2ShortMapcopy in interface Float2ShortOrderedMapcopy in class Float2ShortOpenCustomHashMappublic float firstFloatKey()
Float2ShortOrderedMapfirstFloatKey in interface Float2ShortOrderedMappublic float pollFirstFloatKey()
Float2ShortOrderedMappollFirstFloatKey in interface Float2ShortOrderedMappublic float lastFloatKey()
Float2ShortOrderedMaplastFloatKey in interface Float2ShortOrderedMappublic float pollLastFloatKey()
Float2ShortOrderedMappollLastFloatKey in interface Float2ShortOrderedMappublic short firstShortValue()
Float2ShortOrderedMapfirstShortValue in interface Float2ShortOrderedMappublic short lastShortValue()
Float2ShortOrderedMaplastShortValue in interface Float2ShortOrderedMappublic ObjectOrderedSet<Float2ShortMap.Entry> float2ShortEntrySet()
Float2ShortMapfloat2ShortEntrySet in interface Float2ShortMapfloat2ShortEntrySet in interface Float2ShortOrderedMapfloat2ShortEntrySet in class Float2ShortOpenCustomHashMappublic FloatOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Short>keySet in interface Float2ShortMapkeySet in interface Float2ShortOrderedMapkeySet in class Float2ShortOpenCustomHashMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Short>values in interface Float2ShortMapvalues 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 Float2ShortOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Float2ShortOpenCustomHashMapsize - the amount of elements that should be allowed