public class Int2ByteLinkedOpenHashMap extends Int2ByteOpenHashMap implements Int2ByteSortedMap
AbstractInt2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ByteSortedMap.FastSortedSetInt2ByteMap.Entry, Int2ByteMap.FastEntrySet| Constructor and Description |
|---|
Int2ByteLinkedOpenHashMap()
Default Constructor
|
Int2ByteLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Int2ByteLinkedOpenHashMap(int[] keys,
byte[] values)
Helper constructor that allow to create a map from unboxed values
|
Int2ByteLinkedOpenHashMap(int[] keys,
byte[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Int2ByteLinkedOpenHashMap(Int2ByteMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2ByteLinkedOpenHashMap(Int2ByteMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2ByteLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Byte[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2ByteLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Byte[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2ByteLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Int2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Int2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> map,
float loadFactor)
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 Int2ByteLinkedOpenHashMap()
public Int2ByteLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Int2ByteLinkedOpenHashMap(int minCapacity,
float loadFactor)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Int2ByteLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Byte[] values)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Int2ByteLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Byte[] values,
float loadFactor)
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 resizejava.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 Int2ByteLinkedOpenHashMap(int[] keys,
byte[] values)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Int2ByteLinkedOpenHashMap(int[] keys,
byte[] values,
float loadFactor)
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 resizejava.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 Int2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> map)
map - the values that should be present in the mappublic Int2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> map,
float loadFactor)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Int2ByteLinkedOpenHashMap(Int2ByteMap map)
map - the values that should be present in the mappublic Int2ByteLinkedOpenHashMap(Int2ByteMap map, float loadFactor)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizejava.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 Int2ByteOpenHashMappublic 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 Int2ByteOpenHashMappublic 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 Int2ByteOpenHashMappublic void forEach(IntByteConsumer action)
Int2ByteMapforEach in interface Int2ByteMapforEach in class Int2ByteOpenHashMapaction - 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 Int2ByteOpenHashMap