public class Byte2IntLinkedOpenHashMap extends Byte2IntOpenHashMap implements Byte2IntSortedMap
AbstractByte2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2IntSortedMap.FastSortedSetByte2IntMap.Entry, Byte2IntMap.FastEntrySet| Constructor and Description |
|---|
Byte2IntLinkedOpenHashMap()
Default Constructor
|
Byte2IntLinkedOpenHashMap(byte[] keys,
int[] values)
Helper constructor that allow to create a map from unboxed values
|
Byte2IntLinkedOpenHashMap(byte[] keys,
int[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Byte2IntLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Integer[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2IntLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Integer[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2IntLinkedOpenHashMap(Byte2IntMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2IntLinkedOpenHashMap(Byte2IntMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2IntLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Byte2IntLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Byte2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> 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 |
|---|---|
ObjectSet<Byte2IntMap.Entry> |
byte2IntEntrySet()
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.
|
int |
firstIntValue()
A method to get the first Value of a Map.
|
void |
forEach(ByteIntConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
int |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
int |
getAndMoveToLast(byte key)
A Specific get method that allows to move teh given key/value int the last index.
|
Byte2IntSortedMap |
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.
|
int |
lastIntValue()
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.
|
int |
putAndMoveToFirst(byte key,
int value)
A customized put method that allows you to insert into the first index.
|
int |
putAndMoveToLast(byte key,
int value)
A customized put method that allows you to insert into the last index.
|
Byte2IntSortedMap |
subMap(byte fromKey,
byte toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Byte2IntSortedMap |
tailMap(byte fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
IntCollection |
values() |
addTo, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, get, getInt, getOrDefault, mergeAllInt, mergeInt, put, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceInts, replaceInts, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getInt, getOrDefault, getOrDefault, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValuepublic Byte2IntLinkedOpenHashMap()
public Byte2IntLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Byte2IntLinkedOpenHashMap(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 Byte2IntLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Integer[] 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 Byte2IntLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Integer[] 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 Byte2IntLinkedOpenHashMap(byte[] keys,
int[] 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 Byte2IntLinkedOpenHashMap(byte[] keys,
int[] 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 Byte2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
map - the values that should be present in the mappublic Byte2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> 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 Byte2IntLinkedOpenHashMap(Byte2IntMap map)
map - the values that should be present in the mappublic Byte2IntLinkedOpenHashMap(Byte2IntMap 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 int putAndMoveToFirst(byte key,
int value)
Byte2IntSortedMapputAndMoveToFirst in interface Byte2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public int putAndMoveToLast(byte key,
int value)
Byte2IntSortedMapputAndMoveToLast in interface Byte2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2IntSortedMapmoveToFirst in interface Byte2IntSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2IntSortedMapmoveToLast in interface Byte2IntSortedMapkey - that should be moved to the first lastpublic int getAndMoveToFirst(byte key)
Byte2IntSortedMapgetAndMoveToFirst in interface Byte2IntSortedMapkey - that is searched forpublic int getAndMoveToLast(byte key)
Byte2IntSortedMapgetAndMoveToLast in interface Byte2IntSortedMapkey - that is searched forpublic ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,java.lang.Integer>comparator in interface Byte2IntSortedMappublic Byte2IntSortedMap subMap(byte fromKey, byte toKey)
Byte2IntSortedMapsubMap in interface Byte2IntSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Byte2IntSortedMap headMap(byte toKey)
Byte2IntSortedMapheadMap in interface Byte2IntSortedMaptoKey - where the headMap should endpublic Byte2IntSortedMap tailMap(byte fromKey)
Byte2IntSortedMaptailMap in interface Byte2IntSortedMapfromKey - where the TailMap should startpublic byte firstByteKey()
Byte2IntSortedMapfirstByteKey in interface Byte2IntSortedMappublic byte pollFirstByteKey()
Byte2IntSortedMappollFirstByteKey in interface Byte2IntSortedMappublic byte lastByteKey()
Byte2IntSortedMaplastByteKey in interface Byte2IntSortedMappublic byte pollLastByteKey()
Byte2IntSortedMappollLastByteKey in interface Byte2IntSortedMappublic int firstIntValue()
Byte2IntSortedMapfirstIntValue in interface Byte2IntSortedMappublic int lastIntValue()
Byte2IntSortedMaplastIntValue in interface Byte2IntSortedMappublic ObjectSet<Byte2IntMap.Entry> byte2IntEntrySet()
Byte2IntMapbyte2IntEntrySet in interface Byte2IntMapbyte2IntEntrySet in class Byte2IntOpenHashMappublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Integer>keySet in interface java.util.SortedMap<java.lang.Byte,java.lang.Integer>keySet in interface Byte2IntMapkeySet in interface Byte2IntSortedMapkeySet in class Byte2IntOpenHashMappublic IntCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Integer>values in interface java.util.SortedMap<java.lang.Byte,java.lang.Integer>values in interface Byte2IntMapvalues in interface Byte2IntSortedMapvalues in class Byte2IntOpenHashMappublic void forEach(ByteIntConsumer action)
Byte2IntMapforEach in interface Byte2IntMapforEach in class Byte2IntOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Integer>clear in class Byte2IntOpenHashMap