V - the type of elements maintained by this Collectionpublic class Float2ObjectLinkedOpenHashMap<V> extends Float2ObjectOpenHashMap<V> implements Float2ObjectSortedMap<V>
AbstractFloat2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ObjectSortedMap.FastSortedSet<V>Float2ObjectMap.Entry<V>, Float2ObjectMap.FastEntrySet<V>| Constructor and Description |
|---|
Float2ObjectLinkedOpenHashMap()
Default Constructor
|
Float2ObjectLinkedOpenHashMap(float[] keys,
V[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2ObjectLinkedOpenHashMap(java.lang.Float[] keys,
V[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2ObjectLinkedOpenHashMap(float[] keys,
V[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Float2ObjectLinkedOpenHashMap(java.lang.Float[] keys,
V[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2ObjectLinkedOpenHashMap(Float2ObjectMap<V> map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2ObjectLinkedOpenHashMap(Float2ObjectMap<V> map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2ObjectLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Float2ObjectLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Float2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends V> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends V> 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.
|
V |
firstValue()
A method to get the first Value of a Map.
|
ObjectSet<Float2ObjectMap.Entry<V>> |
float2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatObjectConsumer<V> action)
Type Specific forEach method to reduce boxing/unboxing
|
V |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
Float2ObjectSortedMap<V> |
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.
|
V |
lastValue()
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.
|
V |
putAndMoveToFirst(float key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(float key,
V value)
A customized put method that allows you to insert into the last index.
|
Float2ObjectSortedMap<V> |
subMap(float fromKey,
float toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2ObjectSortedMap<V> |
tailMap(float fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ObjectCollection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, get, getObject, getOrDefault, merge, mergeAll, put, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, sizeentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceObjects, replaceObjects, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapcompute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, containsKey, containsKey, entrySet, forEach, get, getDefaultReturnValue, getObject, getOrDefault, getOrDefault, merge, merge, mergeAll, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValuepublic Float2ObjectLinkedOpenHashMap()
public Float2ObjectLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Float2ObjectLinkedOpenHashMap(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 Float2ObjectLinkedOpenHashMap(java.lang.Float[] keys,
V[] 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 Float2ObjectLinkedOpenHashMap(java.lang.Float[] keys,
V[] 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 Float2ObjectLinkedOpenHashMap(float[] keys,
V[] 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 Float2ObjectLinkedOpenHashMap(float[] keys,
V[] 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 Float2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends V> map)
map - the values that should be present in the mappublic Float2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends V> 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 Float2ObjectLinkedOpenHashMap(Float2ObjectMap<V> map)
map - the values that should be present in the mappublic Float2ObjectLinkedOpenHashMap(Float2ObjectMap<V> 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 V putAndMoveToFirst(float key, V value)
Float2ObjectSortedMapputAndMoveToFirst in interface Float2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(float key, V value)
Float2ObjectSortedMapputAndMoveToLast in interface Float2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2ObjectSortedMapmoveToFirst in interface Float2ObjectSortedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2ObjectSortedMapmoveToLast in interface Float2ObjectSortedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(float key)
Float2ObjectSortedMapgetAndMoveToFirst in interface Float2ObjectSortedMap<V>key - that is searched forpublic V getAndMoveToLast(float key)
Float2ObjectSortedMapgetAndMoveToLast in interface Float2ObjectSortedMap<V>key - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,V>comparator in interface Float2ObjectSortedMap<V>public Float2ObjectSortedMap<V> subMap(float fromKey, float toKey)
Float2ObjectSortedMapsubMap in interface Float2ObjectSortedMap<V>fromKey - where the submap should starttoKey - where the subMap should endpublic Float2ObjectSortedMap<V> headMap(float toKey)
Float2ObjectSortedMapheadMap in interface Float2ObjectSortedMap<V>toKey - where the headMap should endpublic Float2ObjectSortedMap<V> tailMap(float fromKey)
Float2ObjectSortedMaptailMap in interface Float2ObjectSortedMap<V>fromKey - where the TailMap should startpublic float firstFloatKey()
Float2ObjectSortedMapfirstFloatKey in interface Float2ObjectSortedMap<V>public float pollFirstFloatKey()
Float2ObjectSortedMappollFirstFloatKey in interface Float2ObjectSortedMap<V>public float lastFloatKey()
Float2ObjectSortedMaplastFloatKey in interface Float2ObjectSortedMap<V>public float pollLastFloatKey()
Float2ObjectSortedMappollLastFloatKey in interface Float2ObjectSortedMap<V>public V firstValue()
Float2ObjectSortedMapfirstValue in interface Float2ObjectSortedMap<V>public V lastValue()
Float2ObjectSortedMaplastValue in interface Float2ObjectSortedMap<V>public ObjectSet<Float2ObjectMap.Entry<V>> float2ObjectEntrySet()
Float2ObjectMapfloat2ObjectEntrySet in interface Float2ObjectMap<V>float2ObjectEntrySet in class Float2ObjectOpenHashMap<V>public FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,V>keySet in interface java.util.SortedMap<java.lang.Float,V>keySet in interface Float2ObjectMap<V>keySet in interface Float2ObjectSortedMap<V>keySet in class Float2ObjectOpenHashMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Float,V>values in interface java.util.SortedMap<java.lang.Float,V>values in interface Float2ObjectMap<V>values in interface Float2ObjectSortedMap<V>values in class Float2ObjectOpenHashMap<V>public void forEach(FloatObjectConsumer<V> action)
Float2ObjectMapforEach in interface Float2ObjectMap<V>forEach in class Float2ObjectOpenHashMap<V>action - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,V>clear in class Float2ObjectOpenHashMap<V>