public class Int2ByteLinkedOpenCustomHashMap extends Int2ByteOpenCustomHashMap implements Int2ByteSortedMap
AbstractInt2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ByteSortedMap.FastSortedSetInt2ByteMap.Entry, Int2ByteMap.FastEntrySet| Constructor and Description |
|---|
Int2ByteLinkedOpenCustomHashMap(int[] keys,
byte[] values,
float loadFactor,
IntStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Int2ByteLinkedOpenCustomHashMap(int[] keys,
byte[] values,
IntStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Int2ByteLinkedOpenCustomHashMap(Int2ByteMap map,
float loadFactor,
IntStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2ByteLinkedOpenCustomHashMap(Int2ByteMap map,
IntStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2ByteLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Byte[] values,
float loadFactor,
IntStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2ByteLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Byte[] values,
IntStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2ByteLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
IntStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Int2ByteLinkedOpenCustomHashMap(int minCapacity,
IntStrategy strategy)
Constructor that defines the minimum capacity
|
Int2ByteLinkedOpenCustomHashMap(IntStrategy strategy)
Default Constructor
|
Int2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> map,
float loadFactor,
IntStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Int2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> map,
IntStrategy 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() |
IntComparator |
comparator() |
byte |
firstByteValue()
A method to get the first Value of a Map.
|
int |
firstIntKey()
A method to get the first Key of a Map.
|
void |
forEach(IntByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
getAndMoveToFirst(int key)
A Specific get method that allows to move teh given key/value int the first index.
|
byte |
getAndMoveToLast(int key)
A Specific get method that allows to move teh given key/value int the last index.
|
Int2ByteSortedMap |
headMap(int toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ObjectSet<Int2ByteMap.Entry> |
int2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
byte |
lastByteValue()
A method to get the last Value of a Map.
|
int |
lastIntKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(int key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(int key)
A specific move method to move a given key/value to the last index.
|
int |
pollFirstIntKey()
A method to get and remove the first Key of a Map.
|
int |
pollLastIntKey()
A method to get and remove the last Key of a Map.
|
byte |
putAndMoveToFirst(int key,
byte value)
A customized put method that allows you to insert into the first index.
|
byte |
putAndMoveToLast(int key,
byte value)
A customized put method that allows you to insert into the last index.
|
Int2ByteSortedMap |
subMap(int fromKey,
int toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Int2ByteSortedMap |
tailMap(int 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, remInt, remIntOrDefault, 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, remInt, remIntOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBytes, replaceBytes, setDefaultReturnValuepublic Int2ByteLinkedOpenCustomHashMap(IntStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2ByteLinkedOpenCustomHashMap(int minCapacity,
IntStrategy 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 Int2ByteLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
IntStrategy 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 Int2ByteLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Byte[] values,
IntStrategy 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 Int2ByteLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Byte[] values,
float loadFactor,
IntStrategy 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 Int2ByteLinkedOpenCustomHashMap(int[] keys,
byte[] values,
IntStrategy 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 Int2ByteLinkedOpenCustomHashMap(int[] keys,
byte[] values,
float loadFactor,
IntStrategy 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 Int2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> map,
IntStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> map,
float loadFactor,
IntStrategy 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 Int2ByteLinkedOpenCustomHashMap(Int2ByteMap map, IntStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2ByteLinkedOpenCustomHashMap(Int2ByteMap map, float loadFactor, IntStrategy 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(int key,
byte value)
Int2ByteSortedMapputAndMoveToFirst in interface Int2ByteSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public byte putAndMoveToLast(int key,
byte value)
Int2ByteSortedMapputAndMoveToLast in interface Int2ByteSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2ByteSortedMapmoveToFirst in interface Int2ByteSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2ByteSortedMapmoveToLast in interface Int2ByteSortedMapkey - that should be moved to the first lastpublic byte getAndMoveToFirst(int key)
Int2ByteSortedMapgetAndMoveToFirst in interface Int2ByteSortedMapkey - that is searched forpublic byte getAndMoveToLast(int key)
Int2ByteSortedMapgetAndMoveToLast in interface Int2ByteSortedMapkey - that is searched forpublic IntComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Integer,java.lang.Byte>comparator in interface Int2ByteSortedMappublic Int2ByteSortedMap subMap(int fromKey, int toKey)
Int2ByteSortedMapsubMap in interface Int2ByteSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Int2ByteSortedMap headMap(int toKey)
Int2ByteSortedMapheadMap in interface Int2ByteSortedMaptoKey - where the headMap should endpublic Int2ByteSortedMap tailMap(int fromKey)
Int2ByteSortedMaptailMap in interface Int2ByteSortedMapfromKey - where the TailMap should startpublic int firstIntKey()
Int2ByteSortedMapfirstIntKey in interface Int2ByteSortedMappublic int pollFirstIntKey()
Int2ByteSortedMappollFirstIntKey in interface Int2ByteSortedMappublic int lastIntKey()
Int2ByteSortedMaplastIntKey in interface Int2ByteSortedMappublic int pollLastIntKey()
Int2ByteSortedMappollLastIntKey in interface Int2ByteSortedMappublic byte firstByteValue()
Int2ByteSortedMapfirstByteValue in interface Int2ByteSortedMappublic byte lastByteValue()
Int2ByteSortedMaplastByteValue in interface Int2ByteSortedMappublic ObjectSet<Int2ByteMap.Entry> int2ByteEntrySet()
Int2ByteMapint2ByteEntrySet in interface Int2ByteMapint2ByteEntrySet in class Int2ByteOpenCustomHashMappublic IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Byte>keySet in interface java.util.SortedMap<java.lang.Integer,java.lang.Byte>keySet in interface Int2ByteMapkeySet in interface Int2ByteSortedMapkeySet in class Int2ByteOpenCustomHashMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Byte>values in interface java.util.SortedMap<java.lang.Integer,java.lang.Byte>values in interface Int2ByteMapvalues in interface Int2ByteSortedMapvalues in class Int2ByteOpenCustomHashMappublic void forEach(IntByteConsumer action)
Int2ByteMapforEach in interface Int2ByteMapforEach in class Int2ByteOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Integer,java.lang.Byte>clear in class Int2ByteOpenCustomHashMap