public class Float2ShortLinkedOpenHashMap extends Float2ShortOpenHashMap 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 |
|---|
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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
boolean |
containsValue(short value)
Type Specific method to reduce boxing/unboxing of values
|
Float2ShortLinkedOpenHashMap |
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, 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, 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 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)
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 boolean containsValue(short value)
Float2ShortMapcontainsValue in interface Float2ShortMapcontainsValue in class Float2ShortOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Short>containsValue in interface Float2ShortMapcontainsValue in class Float2ShortOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Float2ShortLinkedOpenHashMap copy()
Float2ShortMapcopy in interface Float2ShortMapcopy in interface Float2ShortOrderedMapcopy in class Float2ShortOpenHashMappublic 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 Float2ShortOpenHashMappublic FloatOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Short>keySet in interface Float2ShortMapkeySet in interface Float2ShortOrderedMapkeySet in class Float2ShortOpenHashMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Short>values in interface Float2ShortMapvalues 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 Float2ShortOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Float2ShortOpenHashMapsize - the amount of elements that should be allowed