public class Byte2DoubleLinkedOpenCustomHashMap extends Byte2DoubleOpenCustomHashMap implements Byte2DoubleSortedMap
AbstractByte2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2DoubleSortedMap.FastSortedSetByte2DoubleMap.Entry, Byte2DoubleMap.FastEntrySet| Constructor and Description |
|---|
Byte2DoubleLinkedOpenCustomHashMap(byte[] keys,
double[] values,
ByteStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Byte2DoubleLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Double[] values,
ByteStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2DoubleLinkedOpenCustomHashMap(byte[] keys,
double[] values,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Byte2DoubleLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Double[] values,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2DoubleLinkedOpenCustomHashMap(Byte2DoubleMap map,
ByteStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2DoubleLinkedOpenCustomHashMap(Byte2DoubleMap 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.
|
Byte2DoubleLinkedOpenCustomHashMap(ByteStrategy strategy)
Default Constructor
|
Byte2DoubleLinkedOpenCustomHashMap(int minCapacity,
ByteStrategy strategy)
Constructor that defines the minimum capacity
|
Byte2DoubleLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ByteStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Byte2DoubleLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Double> map,
ByteStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2DoubleLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Double> 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<Byte2DoubleMap.Entry> |
byte2DoubleEntrySet()
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.
|
double |
firstDoubleValue()
A method to get the first Value of a Map.
|
void |
forEach(ByteDoubleConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
double |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
double |
getAndMoveToLast(byte key)
A Specific get method that allows to move teh given key/value int the last index.
|
Byte2DoubleSortedMap |
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.
|
double |
lastDoubleValue()
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.
|
double |
putAndMoveToFirst(byte key,
double value)
A customized put method that allows you to insert into the first index.
|
double |
putAndMoveToLast(byte key,
double value)
A customized put method that allows you to insert into the last index.
|
Byte2DoubleSortedMap |
subMap(byte fromKey,
byte toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Byte2DoubleSortedMap |
tailMap(byte fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
DoubleCollection |
values() |
addTo, computeDouble, computeDoubleIfAbsent, computeDoubleIfPresent, containsKey, containsKey, containsValue, containsValue, get, getDouble, getOrDefault, mergeAllDouble, mergeDouble, put, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceDoubles, replaceDoubles, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeDouble, computeDoubleIfAbsent, computeDoubleIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getDouble, getOrDefault, getOrDefault, merge, mergeAllDouble, mergeDouble, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceDoubles, replaceDoubles, setDefaultReturnValuepublic Byte2DoubleLinkedOpenCustomHashMap(ByteStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2DoubleLinkedOpenCustomHashMap(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 Byte2DoubleLinkedOpenCustomHashMap(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 Byte2DoubleLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Double[] 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 Byte2DoubleLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Double[] 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 Byte2DoubleLinkedOpenCustomHashMap(byte[] keys,
double[] 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 Byte2DoubleLinkedOpenCustomHashMap(byte[] keys,
double[] 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 Byte2DoubleLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Double> 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 Byte2DoubleLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Double> 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 Byte2DoubleLinkedOpenCustomHashMap(Byte2DoubleMap 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 Byte2DoubleLinkedOpenCustomHashMap(Byte2DoubleMap 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 double putAndMoveToFirst(byte key,
double value)
Byte2DoubleSortedMapputAndMoveToFirst in interface Byte2DoubleSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public double putAndMoveToLast(byte key,
double value)
Byte2DoubleSortedMapputAndMoveToLast in interface Byte2DoubleSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2DoubleSortedMapmoveToFirst in interface Byte2DoubleSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2DoubleSortedMapmoveToLast in interface Byte2DoubleSortedMapkey - that should be moved to the first lastpublic double getAndMoveToFirst(byte key)
Byte2DoubleSortedMapgetAndMoveToFirst in interface Byte2DoubleSortedMapkey - that is searched forpublic double getAndMoveToLast(byte key)
Byte2DoubleSortedMapgetAndMoveToLast in interface Byte2DoubleSortedMapkey - that is searched forpublic ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,java.lang.Double>comparator in interface Byte2DoubleSortedMappublic Byte2DoubleSortedMap subMap(byte fromKey, byte toKey)
Byte2DoubleSortedMapsubMap in interface Byte2DoubleSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Byte2DoubleSortedMap headMap(byte toKey)
Byte2DoubleSortedMapheadMap in interface Byte2DoubleSortedMaptoKey - where the headMap should endpublic Byte2DoubleSortedMap tailMap(byte fromKey)
Byte2DoubleSortedMaptailMap in interface Byte2DoubleSortedMapfromKey - where the TailMap should startpublic byte firstByteKey()
Byte2DoubleSortedMapfirstByteKey in interface Byte2DoubleSortedMappublic byte pollFirstByteKey()
Byte2DoubleSortedMappollFirstByteKey in interface Byte2DoubleSortedMappublic byte lastByteKey()
Byte2DoubleSortedMaplastByteKey in interface Byte2DoubleSortedMappublic byte pollLastByteKey()
Byte2DoubleSortedMappollLastByteKey in interface Byte2DoubleSortedMappublic double firstDoubleValue()
Byte2DoubleSortedMapfirstDoubleValue in interface Byte2DoubleSortedMappublic double lastDoubleValue()
Byte2DoubleSortedMaplastDoubleValue in interface Byte2DoubleSortedMappublic ObjectSet<Byte2DoubleMap.Entry> byte2DoubleEntrySet()
Byte2DoubleMapbyte2DoubleEntrySet in interface Byte2DoubleMapbyte2DoubleEntrySet in class Byte2DoubleOpenCustomHashMappublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Double>keySet in interface java.util.SortedMap<java.lang.Byte,java.lang.Double>keySet in interface Byte2DoubleMapkeySet in interface Byte2DoubleSortedMapkeySet in class Byte2DoubleOpenCustomHashMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Double>values in interface java.util.SortedMap<java.lang.Byte,java.lang.Double>values in interface Byte2DoubleMapvalues in interface Byte2DoubleSortedMapvalues in class Byte2DoubleOpenCustomHashMappublic void forEach(ByteDoubleConsumer action)
Byte2DoubleMapforEach in interface Byte2DoubleMapforEach in class Byte2DoubleOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Double>clear in class Byte2DoubleOpenCustomHashMap