public class Byte2CharLinkedOpenHashMap extends Byte2CharOpenHashMap implements Byte2CharSortedMap
AbstractByte2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2CharSortedMap.FastSortedSetByte2CharMap.Entry, Byte2CharMap.FastEntrySet| 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 |
|---|---|
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 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)
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 Byte2CharOpenHashMappublic 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 Byte2CharOpenHashMappublic 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 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 Byte2CharOpenHashMap