public class Byte2ByteLinkedOpenHashMap extends Byte2ByteOpenHashMap implements Byte2ByteOrderedMap
AbstractByte2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2ByteOrderedMap.FastOrderedSetByte2ByteMap.BuilderCache, Byte2ByteMap.Entry, Byte2ByteMap.FastEntrySet, Byte2ByteMap.MapBuilder| Constructor and Description |
|---|
Byte2ByteLinkedOpenHashMap()
Default Constructor
|
Byte2ByteLinkedOpenHashMap(byte[] keys,
byte[] values)
Helper constructor that allow to create a map from unboxed values
|
Byte2ByteLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Byte[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2ByteLinkedOpenHashMap(byte[] keys,
byte[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Byte2ByteLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Byte[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2ByteLinkedOpenHashMap(Byte2ByteMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2ByteLinkedOpenHashMap(Byte2ByteMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2ByteLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Byte2ByteLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Byte2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Byte> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? 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 |
|---|---|
ObjectOrderedSet<Byte2ByteMap.Entry> |
byte2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
boolean |
containsValue(byte value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Byte2ByteLinkedOpenHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
byte |
firstByteKey()
A method to get the first Key of a Map.
|
byte |
firstByteValue()
A method to get the first Value of a Map.
|
void |
forEach(ByteByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
byte |
getAndMoveToLast(byte key)
A Specific get method that allows to move teh given key/value int the last index.
|
ByteOrderedSet |
keySet() |
byte |
lastByteKey()
A method to get the last Key of a Map.
|
byte |
lastByteValue()
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.
|
byte |
putAndMoveToFirst(byte key,
byte value)
A customized put method that allows you to insert into the first index.
|
byte |
putAndMoveToLast(byte key,
byte value)
A customized put method that allows you to insert into the last index.
|
ByteCollection |
values() |
addTo, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsKey, 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, 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 Byte2ByteLinkedOpenHashMap()
public Byte2ByteLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Byte2ByteLinkedOpenHashMap(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 Byte2ByteLinkedOpenHashMap(java.lang.Byte[] 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 Byte2ByteLinkedOpenHashMap(java.lang.Byte[] 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 Byte2ByteLinkedOpenHashMap(byte[] 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 Byte2ByteLinkedOpenHashMap(byte[] 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 Byte2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Byte> map)
map - the values that should be present in the mappublic Byte2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? 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 Byte2ByteLinkedOpenHashMap(Byte2ByteMap map)
map - the values that should be present in the mappublic Byte2ByteLinkedOpenHashMap(Byte2ByteMap 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(byte key,
byte value)
Byte2ByteOrderedMapputAndMoveToFirst in interface Byte2ByteOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public byte putAndMoveToLast(byte key,
byte value)
Byte2ByteOrderedMapputAndMoveToLast in interface Byte2ByteOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2ByteOrderedMapmoveToFirst in interface Byte2ByteOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2ByteOrderedMapmoveToLast in interface Byte2ByteOrderedMapkey - that should be moved to the first lastpublic byte getAndMoveToFirst(byte key)
Byte2ByteOrderedMapgetAndMoveToFirst in interface Byte2ByteOrderedMapkey - that is searched forpublic byte getAndMoveToLast(byte key)
Byte2ByteOrderedMapgetAndMoveToLast in interface Byte2ByteOrderedMapkey - that is searched forpublic boolean containsValue(byte value)
Byte2ByteMapcontainsValue in interface Byte2ByteMapcontainsValue in class Byte2ByteOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Byte,java.lang.Byte>containsValue in interface Byte2ByteMapcontainsValue in class Byte2ByteOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Byte2ByteLinkedOpenHashMap copy()
Byte2ByteMapcopy in interface Byte2ByteMapcopy in interface Byte2ByteOrderedMapcopy in class Byte2ByteOpenHashMappublic byte firstByteKey()
Byte2ByteOrderedMapfirstByteKey in interface Byte2ByteOrderedMappublic byte pollFirstByteKey()
Byte2ByteOrderedMappollFirstByteKey in interface Byte2ByteOrderedMappublic byte lastByteKey()
Byte2ByteOrderedMaplastByteKey in interface Byte2ByteOrderedMappublic byte pollLastByteKey()
Byte2ByteOrderedMappollLastByteKey in interface Byte2ByteOrderedMappublic byte firstByteValue()
Byte2ByteOrderedMapfirstByteValue in interface Byte2ByteOrderedMappublic byte lastByteValue()
Byte2ByteOrderedMaplastByteValue in interface Byte2ByteOrderedMappublic ObjectOrderedSet<Byte2ByteMap.Entry> byte2ByteEntrySet()
Byte2ByteMapbyte2ByteEntrySet in interface Byte2ByteMapbyte2ByteEntrySet in interface Byte2ByteOrderedMapbyte2ByteEntrySet in class Byte2ByteOpenHashMappublic ByteOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Byte>keySet in interface Byte2ByteMapkeySet in interface Byte2ByteOrderedMapkeySet in class Byte2ByteOpenHashMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Byte>values in interface Byte2ByteMapvalues in class Byte2ByteOpenHashMappublic void forEach(ByteByteConsumer action)
Byte2ByteMapforEach in interface Byte2ByteMapforEach in class Byte2ByteOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Byte>clear in class Byte2ByteOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Byte2ByteOpenHashMapsize - the amount of elements that should be allowed