public class Char2ByteLinkedOpenHashMap extends Char2ByteOpenHashMap implements Char2ByteSortedMap
AbstractChar2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2ByteSortedMap.FastSortedSetChar2ByteMap.Entry, Char2ByteMap.FastEntrySet| Constructor and Description |
|---|
Char2ByteLinkedOpenHashMap()
Default Constructor
|
Char2ByteLinkedOpenHashMap(char[] keys,
byte[] values)
Helper constructor that allow to create a map from unboxed values
|
Char2ByteLinkedOpenHashMap(char[] keys,
byte[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Char2ByteLinkedOpenHashMap(Char2ByteMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2ByteLinkedOpenHashMap(Char2ByteMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2ByteLinkedOpenHashMap(java.lang.Character[] keys,
java.lang.Byte[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2ByteLinkedOpenHashMap(java.lang.Character[] keys,
java.lang.Byte[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2ByteLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Char2ByteLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Char2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Byte> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? 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 |
|---|---|
ObjectSet<Char2ByteMap.Entry> |
char2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
CharComparator |
comparator() |
byte |
firstByteValue()
A method to get the first Value of a Map.
|
char |
firstCharKey()
A method to get the first Key of a Map.
|
void |
forEach(CharByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
getAndMoveToFirst(char key)
A Specific get method that allows to move teh given key/value int the first index.
|
byte |
getAndMoveToLast(char key)
A Specific get method that allows to move teh given key/value int the last index.
|
Char2ByteSortedMap |
headMap(char toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
CharSet |
keySet() |
byte |
lastByteValue()
A method to get the last Value of a Map.
|
char |
lastCharKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(char key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(char key)
A specific move method to move a given key/value to the last index.
|
char |
pollFirstCharKey()
A method to get and remove the first Key of a Map.
|
char |
pollLastCharKey()
A method to get and remove the last Key of a Map.
|
byte |
putAndMoveToFirst(char key,
byte value)
A customized put method that allows you to insert into the first index.
|
byte |
putAndMoveToLast(char key,
byte value)
A customized put method that allows you to insert into the last index.
|
Char2ByteSortedMap |
subMap(char fromKey,
char toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Char2ByteSortedMap |
tailMap(char fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ByteCollection |
values() |
addTo, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsKey, containsValue, containsValue, get, getByte, getOrDefault, mergeAllByte, mergeByte, put, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBytes, replaceBytes, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeByte, computeByteIfAbsent, computeByteIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getByte, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllByte, mergeByte, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBytes, replaceBytes, setDefaultReturnValuepublic Char2ByteLinkedOpenHashMap()
public Char2ByteLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Char2ByteLinkedOpenHashMap(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 Char2ByteLinkedOpenHashMap(java.lang.Character[] 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 Char2ByteLinkedOpenHashMap(java.lang.Character[] 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 Char2ByteLinkedOpenHashMap(char[] 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 Char2ByteLinkedOpenHashMap(char[] 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 Char2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Byte> map)
map - the values that should be present in the mappublic Char2ByteLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? 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 Char2ByteLinkedOpenHashMap(Char2ByteMap map)
map - the values that should be present in the mappublic Char2ByteLinkedOpenHashMap(Char2ByteMap 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(char key,
byte value)
Char2ByteSortedMapputAndMoveToFirst in interface Char2ByteSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public byte putAndMoveToLast(char key,
byte value)
Char2ByteSortedMapputAndMoveToLast in interface Char2ByteSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(char key)
Char2ByteSortedMapmoveToFirst in interface Char2ByteSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(char key)
Char2ByteSortedMapmoveToLast in interface Char2ByteSortedMapkey - that should be moved to the first lastpublic byte getAndMoveToFirst(char key)
Char2ByteSortedMapgetAndMoveToFirst in interface Char2ByteSortedMapkey - that is searched forpublic byte getAndMoveToLast(char key)
Char2ByteSortedMapgetAndMoveToLast in interface Char2ByteSortedMapkey - that is searched forpublic CharComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Character,java.lang.Byte>comparator in interface Char2ByteSortedMappublic Char2ByteSortedMap subMap(char fromKey, char toKey)
Char2ByteSortedMapsubMap in interface Char2ByteSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Char2ByteSortedMap headMap(char toKey)
Char2ByteSortedMapheadMap in interface Char2ByteSortedMaptoKey - where the headMap should endpublic Char2ByteSortedMap tailMap(char fromKey)
Char2ByteSortedMaptailMap in interface Char2ByteSortedMapfromKey - where the TailMap should startpublic char firstCharKey()
Char2ByteSortedMapfirstCharKey in interface Char2ByteSortedMappublic char pollFirstCharKey()
Char2ByteSortedMappollFirstCharKey in interface Char2ByteSortedMappublic char lastCharKey()
Char2ByteSortedMaplastCharKey in interface Char2ByteSortedMappublic char pollLastCharKey()
Char2ByteSortedMappollLastCharKey in interface Char2ByteSortedMappublic byte firstByteValue()
Char2ByteSortedMapfirstByteValue in interface Char2ByteSortedMappublic byte lastByteValue()
Char2ByteSortedMaplastByteValue in interface Char2ByteSortedMappublic ObjectSet<Char2ByteMap.Entry> char2ByteEntrySet()
Char2ByteMapchar2ByteEntrySet in interface Char2ByteMapchar2ByteEntrySet in class Char2ByteOpenHashMappublic CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Byte>keySet in interface java.util.SortedMap<java.lang.Character,java.lang.Byte>keySet in interface Char2ByteMapkeySet in interface Char2ByteSortedMapkeySet in class Char2ByteOpenHashMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Byte>values in interface java.util.SortedMap<java.lang.Character,java.lang.Byte>values in interface Char2ByteMapvalues in interface Char2ByteSortedMapvalues in class Char2ByteOpenHashMappublic void forEach(CharByteConsumer action)
Char2ByteMapforEach in interface Char2ByteMapforEach in class Char2ByteOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Byte>clear in class Char2ByteOpenHashMap