public class Byte2FloatLinkedOpenCustomHashMap extends Byte2FloatOpenCustomHashMap implements Byte2FloatSortedMap
AbstractByte2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2FloatSortedMap.FastSortedSetByte2FloatMap.Entry, Byte2FloatMap.FastEntrySet| Constructor and Description |
|---|
Byte2FloatLinkedOpenCustomHashMap(byte[] keys,
float[] values,
ByteStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Byte2FloatLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Float[] values,
ByteStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2FloatLinkedOpenCustomHashMap(byte[] keys,
float[] values,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Byte2FloatLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Float[] values,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2FloatLinkedOpenCustomHashMap(Byte2FloatMap map,
ByteStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2FloatLinkedOpenCustomHashMap(Byte2FloatMap map,
float loadFactor,
ByteStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2FloatLinkedOpenCustomHashMap(ByteStrategy strategy)
Default Constructor
|
Byte2FloatLinkedOpenCustomHashMap(int minCapacity,
ByteStrategy strategy)
Constructor that defines the minimum capacity
|
Byte2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ByteStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Byte2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map,
ByteStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map,
float loadFactor,
ByteStrategy 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 |
|---|---|
ObjectSet<Byte2FloatMap.Entry> |
byte2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
ByteComparator |
comparator() |
byte |
firstByteKey()
A method to get the first Key of a Map.
|
float |
firstFloatValue()
A method to get the first Value of a Map.
|
void |
forEach(ByteFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
getAndMoveToLast(byte key)
A Specific get method that allows to move teh given key/value int the last index.
|
Byte2FloatSortedMap |
headMap(byte toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ByteSet |
keySet() |
byte |
lastByteKey()
A method to get the last Key of a Map.
|
float |
lastFloatValue()
A method to get the last Value of a Map.
|
boolean |
moveToFirst(byte key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(byte key)
A specific move method to move a given key/value to the last index.
|
byte |
pollFirstByteKey()
A method to get and remove the first Key of a Map.
|
byte |
pollLastByteKey()
A method to get and remove the last Key of a Map.
|
float |
putAndMoveToFirst(byte key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(byte key,
float value)
A customized put method that allows you to insert into the last index.
|
Byte2FloatSortedMap |
subMap(byte fromKey,
byte toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Byte2FloatSortedMap |
tailMap(byte fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
FloatCollection |
values() |
addTo, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsKey, containsValue, containsValue, get, getFloat, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getFloat, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValuepublic Byte2FloatLinkedOpenCustomHashMap(ByteStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2FloatLinkedOpenCustomHashMap(int minCapacity,
ByteStrategy 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 Byte2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ByteStrategy 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 Byte2FloatLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Float[] values,
ByteStrategy 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 Byte2FloatLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Float[] values,
float loadFactor,
ByteStrategy 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 Byte2FloatLinkedOpenCustomHashMap(byte[] keys,
float[] values,
ByteStrategy 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 Byte2FloatLinkedOpenCustomHashMap(byte[] keys,
float[] values,
float loadFactor,
ByteStrategy 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 Byte2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map,
ByteStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map,
float loadFactor,
ByteStrategy 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 Byte2FloatLinkedOpenCustomHashMap(Byte2FloatMap map, ByteStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2FloatLinkedOpenCustomHashMap(Byte2FloatMap map, float loadFactor, ByteStrategy 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 float putAndMoveToFirst(byte key,
float value)
Byte2FloatSortedMapputAndMoveToFirst in interface Byte2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(byte key,
float value)
Byte2FloatSortedMapputAndMoveToLast in interface Byte2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2FloatSortedMapmoveToFirst in interface Byte2FloatSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2FloatSortedMapmoveToLast in interface Byte2FloatSortedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(byte key)
Byte2FloatSortedMapgetAndMoveToFirst in interface Byte2FloatSortedMapkey - that is searched forpublic float getAndMoveToLast(byte key)
Byte2FloatSortedMapgetAndMoveToLast in interface Byte2FloatSortedMapkey - that is searched forpublic ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,java.lang.Float>comparator in interface Byte2FloatSortedMappublic Byte2FloatSortedMap subMap(byte fromKey, byte toKey)
Byte2FloatSortedMapsubMap in interface Byte2FloatSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Byte2FloatSortedMap headMap(byte toKey)
Byte2FloatSortedMapheadMap in interface Byte2FloatSortedMaptoKey - where the headMap should endpublic Byte2FloatSortedMap tailMap(byte fromKey)
Byte2FloatSortedMaptailMap in interface Byte2FloatSortedMapfromKey - where the TailMap should startpublic byte firstByteKey()
Byte2FloatSortedMapfirstByteKey in interface Byte2FloatSortedMappublic byte pollFirstByteKey()
Byte2FloatSortedMappollFirstByteKey in interface Byte2FloatSortedMappublic byte lastByteKey()
Byte2FloatSortedMaplastByteKey in interface Byte2FloatSortedMappublic byte pollLastByteKey()
Byte2FloatSortedMappollLastByteKey in interface Byte2FloatSortedMappublic float firstFloatValue()
Byte2FloatSortedMapfirstFloatValue in interface Byte2FloatSortedMappublic float lastFloatValue()
Byte2FloatSortedMaplastFloatValue in interface Byte2FloatSortedMappublic ObjectSet<Byte2FloatMap.Entry> byte2FloatEntrySet()
Byte2FloatMapbyte2FloatEntrySet in interface Byte2FloatMapbyte2FloatEntrySet in class Byte2FloatOpenCustomHashMappublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Float>keySet in interface java.util.SortedMap<java.lang.Byte,java.lang.Float>keySet in interface Byte2FloatMapkeySet in interface Byte2FloatSortedMapkeySet in class Byte2FloatOpenCustomHashMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Float>values in interface java.util.SortedMap<java.lang.Byte,java.lang.Float>values in interface Byte2FloatMapvalues in interface Byte2FloatSortedMapvalues in class Byte2FloatOpenCustomHashMappublic void forEach(ByteFloatConsumer action)
Byte2FloatMapforEach in interface Byte2FloatMapforEach in class Byte2FloatOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Float>clear in class Byte2FloatOpenCustomHashMap