public class Int2ByteLinkedOpenCustomHashMap extends Int2ByteOpenCustomHashMap implements Int2ByteOrderedMap
AbstractInt2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ByteOrderedMap.FastOrderedSetInt2ByteMap.BuilderCache, Int2ByteMap.Entry, Int2ByteMap.FastEntrySet, Int2ByteMap.MapBuilder| 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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
Int2ByteLinkedOpenCustomHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
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.
|
ObjectOrderedSet<Int2ByteMap.Entry> |
int2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntOrderedSet |
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.
|
ByteCollection |
values() |
addTo, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsKey, containsValue, containsValue, get, get, getOrDefault, mergeAllByte, mergeByte, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyByteIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceBytes, replaceBytes, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, builder, compute, computeByte, computeByteIfAbsent, computeByteIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllByte, mergeByte, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceBytes, replaceBytes, setDefaultReturnValue, subFrom, supplyByteIfAbsentclearAndTrim, trimpublic 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)
Int2ByteOrderedMapputAndMoveToFirst in interface Int2ByteOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public byte putAndMoveToLast(int key,
byte value)
Int2ByteOrderedMapputAndMoveToLast in interface Int2ByteOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2ByteOrderedMapmoveToFirst in interface Int2ByteOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2ByteOrderedMapmoveToLast in interface Int2ByteOrderedMapkey - that should be moved to the first lastpublic byte getAndMoveToFirst(int key)
Int2ByteOrderedMapgetAndMoveToFirst in interface Int2ByteOrderedMapkey - that is searched forpublic byte getAndMoveToLast(int key)
Int2ByteOrderedMapgetAndMoveToLast in interface Int2ByteOrderedMapkey - that is searched forpublic Int2ByteLinkedOpenCustomHashMap copy()
Int2ByteMapcopy in interface Int2ByteMapcopy in interface Int2ByteOrderedMapcopy in class Int2ByteOpenCustomHashMappublic int firstIntKey()
Int2ByteOrderedMapfirstIntKey in interface Int2ByteOrderedMappublic int pollFirstIntKey()
Int2ByteOrderedMappollFirstIntKey in interface Int2ByteOrderedMappublic int lastIntKey()
Int2ByteOrderedMaplastIntKey in interface Int2ByteOrderedMappublic int pollLastIntKey()
Int2ByteOrderedMappollLastIntKey in interface Int2ByteOrderedMappublic byte firstByteValue()
Int2ByteOrderedMapfirstByteValue in interface Int2ByteOrderedMappublic byte lastByteValue()
Int2ByteOrderedMaplastByteValue in interface Int2ByteOrderedMappublic ObjectOrderedSet<Int2ByteMap.Entry> int2ByteEntrySet()
Int2ByteMapint2ByteEntrySet in interface Int2ByteMapint2ByteEntrySet in interface Int2ByteOrderedMapint2ByteEntrySet in class Int2ByteOpenCustomHashMappublic IntOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Byte>keySet in interface Int2ByteMapkeySet in interface Int2ByteOrderedMapkeySet in class Int2ByteOpenCustomHashMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Byte>values in interface Int2ByteMapvalues 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 Int2ByteOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Int2ByteOpenCustomHashMapsize - the amount of elements that should be allowed