public class Long2FloatLinkedOpenHashMap extends Long2FloatOpenHashMap implements Long2FloatOrderedMap
AbstractLong2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2FloatOrderedMap.FastOrderedSetLong2FloatMap.BuilderCache, Long2FloatMap.Entry, Long2FloatMap.FastEntrySet, Long2FloatMap.MapBuilder| Constructor and Description |
|---|
Long2FloatLinkedOpenHashMap()
Default Constructor
|
Long2FloatLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Long2FloatLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Long2FloatLinkedOpenHashMap(long[] keys,
float[] values)
Helper constructor that allow to create a map from unboxed values
|
Long2FloatLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Float[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2FloatLinkedOpenHashMap(long[] keys,
float[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Long2FloatLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Float[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2FloatLinkedOpenHashMap(Long2FloatMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2FloatLinkedOpenHashMap(Long2FloatMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Float> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Long2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Float> 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(float value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Long2FloatLinkedOpenHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
float |
firstFloatValue()
A method to get the first Value of a Map.
|
long |
firstLongKey()
A method to get the first Key of a Map.
|
void |
forEach(LongFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
getAndMoveToFirst(long key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
getAndMoveToLast(long key)
A Specific get method that allows to move teh given key/value int the last index.
|
LongOrderedSet |
keySet() |
float |
lastFloatValue()
A method to get the last Value of a Map.
|
long |
lastLongKey()
A method to get the last Key of a Map.
|
ObjectOrderedSet<Long2FloatMap.Entry> |
long2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
moveToFirst(long key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(long key)
A specific move method to move a given key/value to the last index.
|
long |
pollFirstLongKey()
A method to get and remove the first Key of a Map.
|
long |
pollLastLongKey()
A method to get and remove the last Key of a Map.
|
float |
putAndMoveToFirst(long key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(long key,
float value)
A customized put method that allows you to insert into the last index.
|
FloatCollection |
values() |
addTo, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsKey, get, get, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyFloatIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, applyAsFloat, builder, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValue, subFrom, supplyFloatIfAbsentclearAndTrim, trimpublic Long2FloatLinkedOpenHashMap()
public Long2FloatLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Long2FloatLinkedOpenHashMap(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 Long2FloatLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Float[] 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 Long2FloatLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Float[] 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 Long2FloatLinkedOpenHashMap(long[] keys,
float[] 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 Long2FloatLinkedOpenHashMap(long[] keys,
float[] 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 Long2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Float> map)
map - the values that should be present in the mappublic Long2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Float> 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 Long2FloatLinkedOpenHashMap(Long2FloatMap map)
map - the values that should be present in the mappublic Long2FloatLinkedOpenHashMap(Long2FloatMap 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 float putAndMoveToFirst(long key,
float value)
Long2FloatOrderedMapputAndMoveToFirst in interface Long2FloatOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(long key,
float value)
Long2FloatOrderedMapputAndMoveToLast in interface Long2FloatOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(long key)
Long2FloatOrderedMapmoveToFirst in interface Long2FloatOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(long key)
Long2FloatOrderedMapmoveToLast in interface Long2FloatOrderedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(long key)
Long2FloatOrderedMapgetAndMoveToFirst in interface Long2FloatOrderedMapkey - that is searched forpublic float getAndMoveToLast(long key)
Long2FloatOrderedMapgetAndMoveToLast in interface Long2FloatOrderedMapkey - that is searched forpublic boolean containsValue(float value)
Long2FloatMapcontainsValue in interface Long2FloatMapcontainsValue in class Long2FloatOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Long,java.lang.Float>containsValue in interface Long2FloatMapcontainsValue in class Long2FloatOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Long2FloatLinkedOpenHashMap copy()
Long2FloatMapcopy in interface Long2FloatMapcopy in interface Long2FloatOrderedMapcopy in class Long2FloatOpenHashMappublic long firstLongKey()
Long2FloatOrderedMapfirstLongKey in interface Long2FloatOrderedMappublic long pollFirstLongKey()
Long2FloatOrderedMappollFirstLongKey in interface Long2FloatOrderedMappublic long lastLongKey()
Long2FloatOrderedMaplastLongKey in interface Long2FloatOrderedMappublic long pollLastLongKey()
Long2FloatOrderedMappollLastLongKey in interface Long2FloatOrderedMappublic float firstFloatValue()
Long2FloatOrderedMapfirstFloatValue in interface Long2FloatOrderedMappublic float lastFloatValue()
Long2FloatOrderedMaplastFloatValue in interface Long2FloatOrderedMappublic ObjectOrderedSet<Long2FloatMap.Entry> long2FloatEntrySet()
Long2FloatMaplong2FloatEntrySet in interface Long2FloatMaplong2FloatEntrySet in interface Long2FloatOrderedMaplong2FloatEntrySet in class Long2FloatOpenHashMappublic LongOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Float>keySet in interface Long2FloatMapkeySet in interface Long2FloatOrderedMapkeySet in class Long2FloatOpenHashMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Float>values in interface Long2FloatMapvalues in class Long2FloatOpenHashMappublic void forEach(LongFloatConsumer action)
Long2FloatMapforEach in interface Long2FloatMapforEach in class Long2FloatOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Long,java.lang.Float>clear in class Long2FloatOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Long2FloatOpenHashMapsize - the amount of elements that should be allowed