public class Char2ShortLinkedOpenCustomHashMap extends Char2ShortOpenCustomHashMap implements Char2ShortSortedMap
AbstractChar2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2ShortSortedMap.FastSortedSetChar2ShortMap.Entry, Char2ShortMap.FastEntrySet| Constructor and Description |
|---|
Char2ShortLinkedOpenCustomHashMap(char[] keys,
short[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2ShortLinkedOpenCustomHashMap(char[] keys,
short[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2ShortLinkedOpenCustomHashMap(Char2ShortMap map,
CharStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2ShortLinkedOpenCustomHashMap(Char2ShortMap 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.
|
Char2ShortLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Short[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2ShortLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Short[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2ShortLinkedOpenCustomHashMap(CharStrategy strategy)
Default Constructor
|
Char2ShortLinkedOpenCustomHashMap(int minCapacity,
CharStrategy strategy)
Constructor that defines the minimum capacity
|
Char2ShortLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
CharStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Char2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Short> map,
CharStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Short> 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 |
|---|---|
ObjectSet<Char2ShortMap.Entry> |
char2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
CharComparator |
comparator() |
char |
firstCharKey()
A method to get the first Key of a Map.
|
short |
firstShortValue()
A method to get the first Value of a Map.
|
void |
forEach(CharShortConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
short |
getAndMoveToFirst(char key)
A Specific get method that allows to move teh given key/value int the first index.
|
short |
getAndMoveToLast(char key)
A Specific get method that allows to move teh given key/value int the last index.
|
Char2ShortSortedMap |
headMap(char toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
CharSet |
keySet() |
char |
lastCharKey()
A method to get the last Key of a Map.
|
short |
lastShortValue()
A method to get the last Value 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.
|
short |
putAndMoveToFirst(char key,
short value)
A customized put method that allows you to insert into the first index.
|
short |
putAndMoveToLast(char key,
short value)
A customized put method that allows you to insert into the last index.
|
Char2ShortSortedMap |
subMap(char fromKey,
char toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Char2ShortSortedMap |
tailMap(char fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ShortCollection |
values() |
addTo, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, get, getOrDefault, getShort, mergeAllShort, mergeShort, put, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceShorts, replaceShorts, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getOrDefault, getOrDefault, getShort, merge, mergeAllShort, mergeShort, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceShorts, replaceShorts, setDefaultReturnValuepublic Char2ShortLinkedOpenCustomHashMap(CharStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2ShortLinkedOpenCustomHashMap(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 Char2ShortLinkedOpenCustomHashMap(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 Char2ShortLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Short[] 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 Char2ShortLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Short[] 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 Char2ShortLinkedOpenCustomHashMap(char[] keys,
short[] 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 Char2ShortLinkedOpenCustomHashMap(char[] keys,
short[] 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 Char2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Short> 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 Char2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Short> 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 Char2ShortLinkedOpenCustomHashMap(Char2ShortMap 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 Char2ShortLinkedOpenCustomHashMap(Char2ShortMap 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 short putAndMoveToFirst(char key,
short value)
Char2ShortSortedMapputAndMoveToFirst in interface Char2ShortSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public short putAndMoveToLast(char key,
short value)
Char2ShortSortedMapputAndMoveToLast in interface Char2ShortSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(char key)
Char2ShortSortedMapmoveToFirst in interface Char2ShortSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(char key)
Char2ShortSortedMapmoveToLast in interface Char2ShortSortedMapkey - that should be moved to the first lastpublic short getAndMoveToFirst(char key)
Char2ShortSortedMapgetAndMoveToFirst in interface Char2ShortSortedMapkey - that is searched forpublic short getAndMoveToLast(char key)
Char2ShortSortedMapgetAndMoveToLast in interface Char2ShortSortedMapkey - that is searched forpublic CharComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Character,java.lang.Short>comparator in interface Char2ShortSortedMappublic Char2ShortSortedMap subMap(char fromKey, char toKey)
Char2ShortSortedMapsubMap in interface Char2ShortSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Char2ShortSortedMap headMap(char toKey)
Char2ShortSortedMapheadMap in interface Char2ShortSortedMaptoKey - where the headMap should endpublic Char2ShortSortedMap tailMap(char fromKey)
Char2ShortSortedMaptailMap in interface Char2ShortSortedMapfromKey - where the TailMap should startpublic char firstCharKey()
Char2ShortSortedMapfirstCharKey in interface Char2ShortSortedMappublic char pollFirstCharKey()
Char2ShortSortedMappollFirstCharKey in interface Char2ShortSortedMappublic char lastCharKey()
Char2ShortSortedMaplastCharKey in interface Char2ShortSortedMappublic char pollLastCharKey()
Char2ShortSortedMappollLastCharKey in interface Char2ShortSortedMappublic short firstShortValue()
Char2ShortSortedMapfirstShortValue in interface Char2ShortSortedMappublic short lastShortValue()
Char2ShortSortedMaplastShortValue in interface Char2ShortSortedMappublic ObjectSet<Char2ShortMap.Entry> char2ShortEntrySet()
Char2ShortMapchar2ShortEntrySet in interface Char2ShortMapchar2ShortEntrySet in class Char2ShortOpenCustomHashMappublic CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Short>keySet in interface java.util.SortedMap<java.lang.Character,java.lang.Short>keySet in interface Char2ShortMapkeySet in interface Char2ShortSortedMapkeySet in class Char2ShortOpenCustomHashMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Short>values in interface java.util.SortedMap<java.lang.Character,java.lang.Short>values in interface Char2ShortMapvalues in interface Char2ShortSortedMapvalues in class Char2ShortOpenCustomHashMappublic void forEach(CharShortConsumer action)
Char2ShortMapforEach in interface Char2ShortMapforEach in class Char2ShortOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Short>clear in class Char2ShortOpenCustomHashMap