public class Double2ByteLinkedOpenCustomHashMap extends Double2ByteOpenCustomHashMap implements Double2ByteSortedMap
AbstractDouble2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ByteSortedMap.FastSortedSetDouble2ByteMap.Entry, Double2ByteMap.FastEntrySet| Constructor and Description |
|---|
Double2ByteLinkedOpenCustomHashMap(double[] keys,
byte[] values,
DoubleStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Double2ByteLinkedOpenCustomHashMap(java.lang.Double[] keys,
java.lang.Byte[] values,
DoubleStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2ByteLinkedOpenCustomHashMap(double[] keys,
byte[] values,
float loadFactor,
DoubleStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Double2ByteLinkedOpenCustomHashMap(java.lang.Double[] keys,
java.lang.Byte[] values,
float loadFactor,
DoubleStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2ByteLinkedOpenCustomHashMap(Double2ByteMap map,
DoubleStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2ByteLinkedOpenCustomHashMap(Double2ByteMap map,
float loadFactor,
DoubleStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2ByteLinkedOpenCustomHashMap(DoubleStrategy strategy)
Default Constructor
|
Double2ByteLinkedOpenCustomHashMap(int minCapacity,
DoubleStrategy strategy)
Constructor that defines the minimum capacity
|
Double2ByteLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
DoubleStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Double2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Byte> map,
DoubleStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Double2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Byte> map,
float loadFactor,
DoubleStrategy 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 |
|---|---|
void |
clear() |
DoubleComparator |
comparator() |
ObjectSet<Double2ByteMap.Entry> |
double2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
byte |
firstByteValue()
A method to get the first Value of a Map.
|
double |
firstDoubleKey()
A method to get the first Key of a Map.
|
void |
forEach(DoubleByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
getAndMoveToFirst(double key)
A Specific get method that allows to move teh given key/value int the first index.
|
byte |
getAndMoveToLast(double key)
A Specific get method that allows to move teh given key/value int the last index.
|
Double2ByteSortedMap |
headMap(double toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
byte |
lastByteValue()
A method to get the last Value of a Map.
|
double |
lastDoubleKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(double key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(double key)
A specific move method to move a given key/value to the last index.
|
double |
pollFirstDoubleKey()
A method to get and remove the first Key of a Map.
|
double |
pollLastDoubleKey()
A method to get and remove the last Key of a Map.
|
byte |
putAndMoveToFirst(double key,
byte value)
A customized put method that allows you to insert into the first index.
|
byte |
putAndMoveToLast(double key,
byte value)
A customized put method that allows you to insert into the last index.
|
Double2ByteSortedMap |
subMap(double fromKey,
double toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Double2ByteSortedMap |
tailMap(double fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ByteCollection |
values() |
addTo, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsKey, containsValue, containsValue, get, getByte, getOrDefault, mergeAllByte, mergeByte, put, putIfAbsent, remDouble, remDoubleOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBytes, replaceBytes, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeByte, computeByteIfAbsent, computeByteIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getByte, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllByte, mergeByte, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remDouble, remDoubleOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBytes, replaceBytes, setDefaultReturnValuepublic Double2ByteLinkedOpenCustomHashMap(DoubleStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Double2ByteLinkedOpenCustomHashMap(int minCapacity,
DoubleStrategy 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 Double2ByteLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
DoubleStrategy 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 Double2ByteLinkedOpenCustomHashMap(java.lang.Double[] keys,
java.lang.Byte[] values,
DoubleStrategy 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 Double2ByteLinkedOpenCustomHashMap(java.lang.Double[] keys,
java.lang.Byte[] values,
float loadFactor,
DoubleStrategy 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 Double2ByteLinkedOpenCustomHashMap(double[] keys,
byte[] values,
DoubleStrategy 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 Double2ByteLinkedOpenCustomHashMap(double[] keys,
byte[] values,
float loadFactor,
DoubleStrategy 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 Double2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Byte> map,
DoubleStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Double2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Byte> map,
float loadFactor,
DoubleStrategy 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 Double2ByteLinkedOpenCustomHashMap(Double2ByteMap map, DoubleStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Double2ByteLinkedOpenCustomHashMap(Double2ByteMap map, float loadFactor, DoubleStrategy 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 byte putAndMoveToFirst(double key,
byte value)
Double2ByteSortedMapputAndMoveToFirst in interface Double2ByteSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public byte putAndMoveToLast(double key,
byte value)
Double2ByteSortedMapputAndMoveToLast in interface Double2ByteSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(double key)
Double2ByteSortedMapmoveToFirst in interface Double2ByteSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(double key)
Double2ByteSortedMapmoveToLast in interface Double2ByteSortedMapkey - that should be moved to the first lastpublic byte getAndMoveToFirst(double key)
Double2ByteSortedMapgetAndMoveToFirst in interface Double2ByteSortedMapkey - that is searched forpublic byte getAndMoveToLast(double key)
Double2ByteSortedMapgetAndMoveToLast in interface Double2ByteSortedMapkey - that is searched forpublic DoubleComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Double,java.lang.Byte>comparator in interface Double2ByteSortedMappublic Double2ByteSortedMap subMap(double fromKey, double toKey)
Double2ByteSortedMapsubMap in interface Double2ByteSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Double2ByteSortedMap headMap(double toKey)
Double2ByteSortedMapheadMap in interface Double2ByteSortedMaptoKey - where the headMap should endpublic Double2ByteSortedMap tailMap(double fromKey)
Double2ByteSortedMaptailMap in interface Double2ByteSortedMapfromKey - where the TailMap should startpublic double firstDoubleKey()
Double2ByteSortedMapfirstDoubleKey in interface Double2ByteSortedMappublic double pollFirstDoubleKey()
Double2ByteSortedMappollFirstDoubleKey in interface Double2ByteSortedMappublic double lastDoubleKey()
Double2ByteSortedMaplastDoubleKey in interface Double2ByteSortedMappublic double pollLastDoubleKey()
Double2ByteSortedMappollLastDoubleKey in interface Double2ByteSortedMappublic byte firstByteValue()
Double2ByteSortedMapfirstByteValue in interface Double2ByteSortedMappublic byte lastByteValue()
Double2ByteSortedMaplastByteValue in interface Double2ByteSortedMappublic ObjectSet<Double2ByteMap.Entry> double2ByteEntrySet()
Double2ByteMapdouble2ByteEntrySet in interface Double2ByteMapdouble2ByteEntrySet in class Double2ByteOpenCustomHashMappublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Byte>keySet in interface java.util.SortedMap<java.lang.Double,java.lang.Byte>keySet in interface Double2ByteMapkeySet in interface Double2ByteSortedMapkeySet in class Double2ByteOpenCustomHashMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Byte>values in interface java.util.SortedMap<java.lang.Double,java.lang.Byte>values in interface Double2ByteMapvalues in interface Double2ByteSortedMapvalues in class Double2ByteOpenCustomHashMappublic void forEach(DoubleByteConsumer action)
Double2ByteMapforEach in interface Double2ByteMapforEach in class Double2ByteOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Double,java.lang.Byte>clear in class Double2ByteOpenCustomHashMap