public class Short2CharLinkedOpenCustomHashMap extends Short2CharOpenCustomHashMap implements Short2CharSortedMap
AbstractShort2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2CharSortedMap.FastSortedSetShort2CharMap.Entry, Short2CharMap.FastEntrySet| Constructor and Description |
|---|
Short2CharLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ShortStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Short2CharLinkedOpenCustomHashMap(int minCapacity,
ShortStrategy strategy)
Constructor that defines the minimum capacity
|
Short2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Character> map,
float loadFactor,
ShortStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Character> map,
ShortStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2CharLinkedOpenCustomHashMap(short[] keys,
char[] values,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Short2CharLinkedOpenCustomHashMap(short[] keys,
char[] values,
ShortStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Short2CharLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Character[] values,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2CharLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Character[] values,
ShortStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2CharLinkedOpenCustomHashMap(Short2CharMap map,
float loadFactor,
ShortStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2CharLinkedOpenCustomHashMap(Short2CharMap map,
ShortStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2CharLinkedOpenCustomHashMap(ShortStrategy strategy)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
ShortComparator |
comparator() |
char |
firstCharValue()
A method to get the first Value of a Map.
|
short |
firstShortKey()
A method to get the first Key of a Map.
|
void |
forEach(ShortCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
getAndMoveToFirst(short key)
A Specific get method that allows to move teh given key/value int the first index.
|
char |
getAndMoveToLast(short key)
A Specific get method that allows to move teh given key/value int the last index.
|
Short2CharSortedMap |
headMap(short toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ShortSet |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
short |
lastShortKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(short key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(short key)
A specific move method to move a given key/value to the last index.
|
short |
pollFirstShortKey()
A method to get and remove the first Key of a Map.
|
short |
pollLastShortKey()
A method to get and remove the last Key of a Map.
|
char |
putAndMoveToFirst(short key,
char value)
A customized put method that allows you to insert into the first index.
|
char |
putAndMoveToLast(short key,
char value)
A customized put method that allows you to insert into the last index.
|
ObjectSet<Short2CharMap.Entry> |
short2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Short2CharSortedMap |
subMap(short fromKey,
short toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Short2CharSortedMap |
tailMap(short 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, remove, remove, remove, remShort, remShortOrDefault, 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, remove, remove, remove, remShort, remShortOrDefault, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Short2CharLinkedOpenCustomHashMap(ShortStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2CharLinkedOpenCustomHashMap(int minCapacity,
ShortStrategy 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 Short2CharLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ShortStrategy 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 Short2CharLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Character[] values,
ShortStrategy 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 Short2CharLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Character[] values,
float loadFactor,
ShortStrategy 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 Short2CharLinkedOpenCustomHashMap(short[] keys,
char[] values,
ShortStrategy 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 Short2CharLinkedOpenCustomHashMap(short[] keys,
char[] values,
float loadFactor,
ShortStrategy 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 Short2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Character> map,
ShortStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Character> map,
float loadFactor,
ShortStrategy 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 Short2CharLinkedOpenCustomHashMap(Short2CharMap map, ShortStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2CharLinkedOpenCustomHashMap(Short2CharMap map, float loadFactor, ShortStrategy 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(short key,
char value)
Short2CharSortedMapputAndMoveToFirst in interface Short2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(short key,
char value)
Short2CharSortedMapputAndMoveToLast in interface Short2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(short key)
Short2CharSortedMapmoveToFirst in interface Short2CharSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(short key)
Short2CharSortedMapmoveToLast in interface Short2CharSortedMapkey - that should be moved to the first lastpublic char getAndMoveToFirst(short key)
Short2CharSortedMapgetAndMoveToFirst in interface Short2CharSortedMapkey - that is searched forpublic char getAndMoveToLast(short key)
Short2CharSortedMapgetAndMoveToLast in interface Short2CharSortedMapkey - that is searched forpublic ShortComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Short,java.lang.Character>comparator in interface Short2CharSortedMappublic Short2CharSortedMap subMap(short fromKey, short toKey)
Short2CharSortedMapsubMap in interface Short2CharSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Short2CharSortedMap headMap(short toKey)
Short2CharSortedMapheadMap in interface Short2CharSortedMaptoKey - where the headMap should endpublic Short2CharSortedMap tailMap(short fromKey)
Short2CharSortedMaptailMap in interface Short2CharSortedMapfromKey - where the TailMap should startpublic short firstShortKey()
Short2CharSortedMapfirstShortKey in interface Short2CharSortedMappublic short pollFirstShortKey()
Short2CharSortedMappollFirstShortKey in interface Short2CharSortedMappublic short lastShortKey()
Short2CharSortedMaplastShortKey in interface Short2CharSortedMappublic short pollLastShortKey()
Short2CharSortedMappollLastShortKey in interface Short2CharSortedMappublic char firstCharValue()
Short2CharSortedMapfirstCharValue in interface Short2CharSortedMappublic char lastCharValue()
Short2CharSortedMaplastCharValue in interface Short2CharSortedMappublic ObjectSet<Short2CharMap.Entry> short2CharEntrySet()
Short2CharMapshort2CharEntrySet in interface Short2CharMapshort2CharEntrySet in class Short2CharOpenCustomHashMappublic ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Short,java.lang.Character>keySet in interface Short2CharMapkeySet in interface Short2CharSortedMapkeySet in class Short2CharOpenCustomHashMappublic CharCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Character>values in interface java.util.SortedMap<java.lang.Short,java.lang.Character>values in interface Short2CharMapvalues in interface Short2CharSortedMapvalues in class Short2CharOpenCustomHashMappublic void forEach(ShortCharConsumer action)
Short2CharMapforEach in interface Short2CharMapforEach in class Short2CharOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Short,java.lang.Character>clear in class Short2CharOpenCustomHashMap