public class Char2ByteLinkedOpenCustomHashMap extends Char2ByteOpenCustomHashMap implements Char2ByteOrderedMap
AbstractChar2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2ByteOrderedMap.FastOrderedSetChar2ByteMap.BuilderCache, Char2ByteMap.Entry, Char2ByteMap.FastEntrySet, Char2ByteMap.MapBuilder| Constructor and Description |
|---|
Char2ByteLinkedOpenCustomHashMap(char[] keys,
byte[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2ByteLinkedOpenCustomHashMap(char[] keys,
byte[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2ByteLinkedOpenCustomHashMap(Char2ByteMap map,
CharStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2ByteLinkedOpenCustomHashMap(Char2ByteMap map,
float loadFactor,
CharStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2ByteLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Byte[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2ByteLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Byte[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2ByteLinkedOpenCustomHashMap(CharStrategy strategy)
Default Constructor
|
Char2ByteLinkedOpenCustomHashMap(int minCapacity,
CharStrategy strategy)
Constructor that defines the minimum capacity
|
Char2ByteLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
CharStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Char2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Byte> map,
CharStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Byte> map,
float loadFactor,
CharStrategy 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 |
|---|---|
ObjectOrderedSet<Char2ByteMap.Entry> |
char2ByteEntrySet()
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
|
Char2ByteLinkedOpenCustomHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
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.
|
CharOrderedSet |
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.
|
ByteCollection |
values() |
addTo, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsKey, containsValue, containsValue, 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, applyAsByte, builder, compute, computeByte, computeByteIfAbsent, computeByteIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllByte, mergeByte, put, put, 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 Char2ByteLinkedOpenCustomHashMap(CharStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2ByteLinkedOpenCustomHashMap(int minCapacity,
CharStrategy 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 Char2ByteLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
CharStrategy 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 Char2ByteLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Byte[] values,
CharStrategy 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 Char2ByteLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Byte[] values,
float loadFactor,
CharStrategy 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 Char2ByteLinkedOpenCustomHashMap(char[] keys,
byte[] values,
CharStrategy 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 Char2ByteLinkedOpenCustomHashMap(char[] keys,
byte[] values,
float loadFactor,
CharStrategy 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 Char2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Byte> map,
CharStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Byte> map,
float loadFactor,
CharStrategy 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 Char2ByteLinkedOpenCustomHashMap(Char2ByteMap map, CharStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2ByteLinkedOpenCustomHashMap(Char2ByteMap map, float loadFactor, CharStrategy 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 byte putAndMoveToFirst(char key,
byte value)
Char2ByteOrderedMapputAndMoveToFirst in interface Char2ByteOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public byte putAndMoveToLast(char key,
byte value)
Char2ByteOrderedMapputAndMoveToLast in interface Char2ByteOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(char key)
Char2ByteOrderedMapmoveToFirst in interface Char2ByteOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(char key)
Char2ByteOrderedMapmoveToLast in interface Char2ByteOrderedMapkey - that should be moved to the first lastpublic byte getAndMoveToFirst(char key)
Char2ByteOrderedMapgetAndMoveToFirst in interface Char2ByteOrderedMapkey - that is searched forpublic byte getAndMoveToLast(char key)
Char2ByteOrderedMapgetAndMoveToLast in interface Char2ByteOrderedMapkey - that is searched forpublic Char2ByteLinkedOpenCustomHashMap copy()
Char2ByteMapcopy in interface Char2ByteMapcopy in interface Char2ByteOrderedMapcopy in class Char2ByteOpenCustomHashMappublic char firstCharKey()
Char2ByteOrderedMapfirstCharKey in interface Char2ByteOrderedMappublic char pollFirstCharKey()
Char2ByteOrderedMappollFirstCharKey in interface Char2ByteOrderedMappublic char lastCharKey()
Char2ByteOrderedMaplastCharKey in interface Char2ByteOrderedMappublic char pollLastCharKey()
Char2ByteOrderedMappollLastCharKey in interface Char2ByteOrderedMappublic byte firstByteValue()
Char2ByteOrderedMapfirstByteValue in interface Char2ByteOrderedMappublic byte lastByteValue()
Char2ByteOrderedMaplastByteValue in interface Char2ByteOrderedMappublic ObjectOrderedSet<Char2ByteMap.Entry> char2ByteEntrySet()
Char2ByteMapchar2ByteEntrySet in interface Char2ByteMapchar2ByteEntrySet in interface Char2ByteOrderedMapchar2ByteEntrySet in class Char2ByteOpenCustomHashMappublic CharOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Byte>keySet in interface Char2ByteMapkeySet in interface Char2ByteOrderedMapkeySet in class Char2ByteOpenCustomHashMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Byte>values in interface Char2ByteMapvalues in class Char2ByteOpenCustomHashMappublic void forEach(CharByteConsumer action)
Char2ByteMapforEach in interface Char2ByteMapforEach in class Char2ByteOpenCustomHashMapaction - 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 Char2ByteOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Char2ByteOpenCustomHashMapsize - the amount of elements that should be allowed