public class Byte2CharLinkedOpenHashMap extends Byte2CharOpenHashMap implements Byte2CharOrderedMap
AbstractByte2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2CharOrderedMap.FastOrderedSetByte2CharMap.BuilderCache, Byte2CharMap.Entry, Byte2CharMap.FastEntrySet, Byte2CharMap.MapBuilder| Constructor and Description |
|---|
Byte2CharLinkedOpenHashMap()
Default Constructor
|
Byte2CharLinkedOpenHashMap(byte[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Byte2CharLinkedOpenHashMap(byte[] keys,
char[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Byte2CharLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2CharLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Character[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2CharLinkedOpenHashMap(Byte2CharMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2CharLinkedOpenHashMap(Byte2CharMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2CharLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Byte2CharLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Byte2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Character> 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<Byte2CharMap.Entry> |
byte2CharEntrySet()
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(char value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Byte2CharLinkedOpenHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
byte |
firstByteKey()
A method to get the first Key of a Map.
|
char |
firstCharValue()
A method to get the first Value of a Map.
|
void |
forEach(ByteCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
char |
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.
|
char |
lastCharValue()
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.
|
char |
putAndMoveToFirst(byte key,
char value)
A customized put method that allows you to insert into the first index.
|
char |
putAndMoveToLast(byte key,
char value)
A customized put method that allows you to insert into the last index.
|
CharCollection |
values() |
addTo, computeChar, computeCharIfAbsent, computeCharIfPresent, containsKey, containsKey, get, get, getOrDefault, mergeAllChar, mergeChar, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyCharIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceChars, replaceChars, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, builder, compute, computeChar, computeCharIfAbsent, computeCharIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllChar, mergeChar, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValue, subFrom, supplyCharIfAbsentclearAndTrim, trimpublic Byte2CharLinkedOpenHashMap()
public Byte2CharLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Byte2CharLinkedOpenHashMap(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 Byte2CharLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Character[] 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 Byte2CharLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Character[] 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 Byte2CharLinkedOpenHashMap(byte[] keys,
char[] 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 Byte2CharLinkedOpenHashMap(byte[] keys,
char[] 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 Byte2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Byte2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Character> 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 Byte2CharLinkedOpenHashMap(Byte2CharMap map)
map - the values that should be present in the mappublic Byte2CharLinkedOpenHashMap(Byte2CharMap 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 char putAndMoveToFirst(byte key,
char value)
Byte2CharOrderedMapputAndMoveToFirst in interface Byte2CharOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(byte key,
char value)
Byte2CharOrderedMapputAndMoveToLast in interface Byte2CharOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2CharOrderedMapmoveToFirst in interface Byte2CharOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2CharOrderedMapmoveToLast in interface Byte2CharOrderedMapkey - that should be moved to the first lastpublic char getAndMoveToFirst(byte key)
Byte2CharOrderedMapgetAndMoveToFirst in interface Byte2CharOrderedMapkey - that is searched forpublic char getAndMoveToLast(byte key)
Byte2CharOrderedMapgetAndMoveToLast in interface Byte2CharOrderedMapkey - that is searched forpublic boolean containsValue(char value)
Byte2CharMapcontainsValue in interface Byte2CharMapcontainsValue in class Byte2CharOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Byte,java.lang.Character>containsValue in interface Byte2CharMapcontainsValue in class Byte2CharOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Byte2CharLinkedOpenHashMap copy()
Byte2CharMapcopy in interface Byte2CharMapcopy in interface Byte2CharOrderedMapcopy in class Byte2CharOpenHashMappublic byte firstByteKey()
Byte2CharOrderedMapfirstByteKey in interface Byte2CharOrderedMappublic byte pollFirstByteKey()
Byte2CharOrderedMappollFirstByteKey in interface Byte2CharOrderedMappublic byte lastByteKey()
Byte2CharOrderedMaplastByteKey in interface Byte2CharOrderedMappublic byte pollLastByteKey()
Byte2CharOrderedMappollLastByteKey in interface Byte2CharOrderedMappublic char firstCharValue()
Byte2CharOrderedMapfirstCharValue in interface Byte2CharOrderedMappublic char lastCharValue()
Byte2CharOrderedMaplastCharValue in interface Byte2CharOrderedMappublic ObjectOrderedSet<Byte2CharMap.Entry> byte2CharEntrySet()
Byte2CharMapbyte2CharEntrySet in interface Byte2CharMapbyte2CharEntrySet in interface Byte2CharOrderedMapbyte2CharEntrySet in class Byte2CharOpenHashMappublic ByteOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Character>keySet in interface Byte2CharMapkeySet in interface Byte2CharOrderedMapkeySet in class Byte2CharOpenHashMappublic CharCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Character>values in interface Byte2CharMapvalues in class Byte2CharOpenHashMappublic void forEach(ByteCharConsumer action)
Byte2CharMapforEach in interface Byte2CharMapforEach in class Byte2CharOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Character>clear in class Byte2CharOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Byte2CharOpenHashMapsize - the amount of elements that should be allowed