public class Float2IntLinkedOpenHashMap extends Float2IntOpenHashMap implements Float2IntSortedMap
AbstractFloat2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2IntSortedMap.FastSortedSetFloat2IntMap.Entry, Float2IntMap.FastEntrySet| Constructor and Description |
|---|
Float2IntLinkedOpenHashMap()
Default Constructor
|
Float2IntLinkedOpenHashMap(float[] keys,
int[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2IntLinkedOpenHashMap(float[] keys,
int[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Float2IntLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Integer[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2IntLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Integer[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2IntLinkedOpenHashMap(Float2IntMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2IntLinkedOpenHashMap(Float2IntMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2IntLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Float2IntLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Float2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> 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.
|
int |
firstIntValue()
A method to get the first Value of a Map.
|
ObjectSet<Float2IntMap.Entry> |
float2IntEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatIntConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
int |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
int |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
Float2IntSortedMap |
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.
|
int |
lastIntValue()
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.
|
int |
putAndMoveToFirst(float key,
int value)
A customized put method that allows you to insert into the first index.
|
int |
putAndMoveToLast(float key,
int value)
A customized put method that allows you to insert into the last index.
|
Float2IntSortedMap |
subMap(float fromKey,
float toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2IntSortedMap |
tailMap(float fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
IntCollection |
values() |
addTo, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, get, getInt, getOrDefault, mergeAllInt, mergeInt, put, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceInts, replaceInts, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getInt, getOrDefault, getOrDefault, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValuepublic Float2IntLinkedOpenHashMap()
public Float2IntLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Float2IntLinkedOpenHashMap(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 Float2IntLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Integer[] 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 Float2IntLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Integer[] 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 Float2IntLinkedOpenHashMap(float[] keys,
int[] 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 Float2IntLinkedOpenHashMap(float[] keys,
int[] 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 Float2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
map - the values that should be present in the mappublic Float2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> 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 Float2IntLinkedOpenHashMap(Float2IntMap map)
map - the values that should be present in the mappublic Float2IntLinkedOpenHashMap(Float2IntMap 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 int putAndMoveToFirst(float key,
int value)
Float2IntSortedMapputAndMoveToFirst in interface Float2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public int putAndMoveToLast(float key,
int value)
Float2IntSortedMapputAndMoveToLast in interface Float2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2IntSortedMapmoveToFirst in interface Float2IntSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2IntSortedMapmoveToLast in interface Float2IntSortedMapkey - that should be moved to the first lastpublic int getAndMoveToFirst(float key)
Float2IntSortedMapgetAndMoveToFirst in interface Float2IntSortedMapkey - that is searched forpublic int getAndMoveToLast(float key)
Float2IntSortedMapgetAndMoveToLast in interface Float2IntSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Integer>comparator in interface Float2IntSortedMappublic Float2IntSortedMap subMap(float fromKey, float toKey)
Float2IntSortedMapsubMap in interface Float2IntSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Float2IntSortedMap headMap(float toKey)
Float2IntSortedMapheadMap in interface Float2IntSortedMaptoKey - where the headMap should endpublic Float2IntSortedMap tailMap(float fromKey)
Float2IntSortedMaptailMap in interface Float2IntSortedMapfromKey - where the TailMap should startpublic float firstFloatKey()
Float2IntSortedMapfirstFloatKey in interface Float2IntSortedMappublic float pollFirstFloatKey()
Float2IntSortedMappollFirstFloatKey in interface Float2IntSortedMappublic float lastFloatKey()
Float2IntSortedMaplastFloatKey in interface Float2IntSortedMappublic float pollLastFloatKey()
Float2IntSortedMappollLastFloatKey in interface Float2IntSortedMappublic int firstIntValue()
Float2IntSortedMapfirstIntValue in interface Float2IntSortedMappublic int lastIntValue()
Float2IntSortedMaplastIntValue in interface Float2IntSortedMappublic ObjectSet<Float2IntMap.Entry> float2IntEntrySet()
Float2IntMapfloat2IntEntrySet in interface Float2IntMapfloat2IntEntrySet in class Float2IntOpenHashMappublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Integer>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Integer>keySet in interface Float2IntMapkeySet in interface Float2IntSortedMapkeySet in class Float2IntOpenHashMappublic IntCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Integer>values in interface java.util.SortedMap<java.lang.Float,java.lang.Integer>values in interface Float2IntMapvalues in interface Float2IntSortedMapvalues in class Float2IntOpenHashMappublic void forEach(FloatIntConsumer action)
Float2IntMapforEach in interface Float2IntMapforEach in class Float2IntOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Integer>clear in class Float2IntOpenHashMap