public class Byte2CharLinkedOpenCustomHashMap extends Byte2CharOpenCustomHashMap implements Byte2CharSortedMap
AbstractByte2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2CharSortedMap.FastSortedSetByte2CharMap.Entry, Byte2CharMap.FastEntrySet| Constructor and Description |
|---|
Byte2CharLinkedOpenCustomHashMap(byte[] keys,
char[] values,
ByteStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Byte2CharLinkedOpenCustomHashMap(byte[] keys,
char[] values,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Byte2CharLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Character[] values,
ByteStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2CharLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Character[] values,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2CharLinkedOpenCustomHashMap(Byte2CharMap map,
ByteStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2CharLinkedOpenCustomHashMap(Byte2CharMap map,
float loadFactor,
ByteStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2CharLinkedOpenCustomHashMap(ByteStrategy strategy)
Default Constructor
|
Byte2CharLinkedOpenCustomHashMap(int minCapacity,
ByteStrategy strategy)
Constructor that defines the minimum capacity
|
Byte2CharLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ByteStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Byte2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Character> map,
ByteStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Character> map,
float loadFactor,
ByteStrategy 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 |
|---|---|
ObjectSet<Byte2CharMap.Entry> |
byte2CharEntrySet()
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.
|
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.
|
Byte2CharSortedMap |
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.
|
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.
|
Byte2CharSortedMap |
subMap(byte fromKey,
byte toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Byte2CharSortedMap |
tailMap(byte fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
CharCollection |
values() |
addTo, computeChar, computeCharIfAbsent, computeCharIfPresent, containsKey, containsKey, containsValue, containsValue, get, getChar, getOrDefault, mergeAllChar, mergeChar, put, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceChars, replaceChars, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeChar, computeCharIfAbsent, computeCharIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getChar, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllChar, mergeChar, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Byte2CharLinkedOpenCustomHashMap(ByteStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2CharLinkedOpenCustomHashMap(int minCapacity,
ByteStrategy 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 Byte2CharLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ByteStrategy 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 Byte2CharLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Character[] values,
ByteStrategy 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 Byte2CharLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Character[] values,
float loadFactor,
ByteStrategy 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 Byte2CharLinkedOpenCustomHashMap(byte[] keys,
char[] values,
ByteStrategy 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 Byte2CharLinkedOpenCustomHashMap(byte[] keys,
char[] values,
float loadFactor,
ByteStrategy 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 Byte2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Character> map,
ByteStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Character> map,
float loadFactor,
ByteStrategy 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 Byte2CharLinkedOpenCustomHashMap(Byte2CharMap map, ByteStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2CharLinkedOpenCustomHashMap(Byte2CharMap map, float loadFactor, ByteStrategy 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 char putAndMoveToFirst(byte key,
char value)
Byte2CharSortedMapputAndMoveToFirst in interface Byte2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(byte key,
char value)
Byte2CharSortedMapputAndMoveToLast in interface Byte2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2CharSortedMapmoveToFirst in interface Byte2CharSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2CharSortedMapmoveToLast in interface Byte2CharSortedMapkey - that should be moved to the first lastpublic char getAndMoveToFirst(byte key)
Byte2CharSortedMapgetAndMoveToFirst in interface Byte2CharSortedMapkey - that is searched forpublic char getAndMoveToLast(byte key)
Byte2CharSortedMapgetAndMoveToLast in interface Byte2CharSortedMapkey - that is searched forpublic ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,java.lang.Character>comparator in interface Byte2CharSortedMappublic Byte2CharSortedMap subMap(byte fromKey, byte toKey)
Byte2CharSortedMapsubMap in interface Byte2CharSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Byte2CharSortedMap headMap(byte toKey)
Byte2CharSortedMapheadMap in interface Byte2CharSortedMaptoKey - where the headMap should endpublic Byte2CharSortedMap tailMap(byte fromKey)
Byte2CharSortedMaptailMap in interface Byte2CharSortedMapfromKey - where the TailMap should startpublic byte firstByteKey()
Byte2CharSortedMapfirstByteKey in interface Byte2CharSortedMappublic byte pollFirstByteKey()
Byte2CharSortedMappollFirstByteKey in interface Byte2CharSortedMappublic byte lastByteKey()
Byte2CharSortedMaplastByteKey in interface Byte2CharSortedMappublic byte pollLastByteKey()
Byte2CharSortedMappollLastByteKey in interface Byte2CharSortedMappublic char firstCharValue()
Byte2CharSortedMapfirstCharValue in interface Byte2CharSortedMappublic char lastCharValue()
Byte2CharSortedMaplastCharValue in interface Byte2CharSortedMappublic ObjectSet<Byte2CharMap.Entry> byte2CharEntrySet()
Byte2CharMapbyte2CharEntrySet in interface Byte2CharMapbyte2CharEntrySet in class Byte2CharOpenCustomHashMappublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Byte,java.lang.Character>keySet in interface Byte2CharMapkeySet in interface Byte2CharSortedMapkeySet in class Byte2CharOpenCustomHashMappublic CharCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Character>values in interface java.util.SortedMap<java.lang.Byte,java.lang.Character>values in interface Byte2CharMapvalues in interface Byte2CharSortedMapvalues in class Byte2CharOpenCustomHashMappublic void forEach(ByteCharConsumer action)
Byte2CharMapforEach in interface Byte2CharMapforEach in class Byte2CharOpenCustomHashMapaction - 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 Byte2CharOpenCustomHashMap