public class Char2IntLinkedOpenCustomHashMap extends Char2IntOpenCustomHashMap implements Char2IntSortedMap
AbstractChar2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2IntSortedMap.FastSortedSetChar2IntMap.Entry, Char2IntMap.FastEntrySet| Constructor and Description |
|---|
Char2IntLinkedOpenCustomHashMap(char[] keys,
int[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2IntLinkedOpenCustomHashMap(char[] keys,
int[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2IntLinkedOpenCustomHashMap(Char2IntMap map,
CharStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2IntLinkedOpenCustomHashMap(Char2IntMap 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.
|
Char2IntLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Integer[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2IntLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Integer[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2IntLinkedOpenCustomHashMap(CharStrategy strategy)
Default Constructor
|
Char2IntLinkedOpenCustomHashMap(int minCapacity,
CharStrategy strategy)
Constructor that defines the minimum capacity
|
Char2IntLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
CharStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Char2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> map,
CharStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> 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<Char2IntMap.Entry> |
char2IntEntrySet()
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.
|
int |
firstIntValue()
A method to get the first Value of a Map.
|
void |
forEach(CharIntConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
int |
getAndMoveToFirst(char key)
A Specific get method that allows to move teh given key/value int the first index.
|
int |
getAndMoveToLast(char key)
A Specific get method that allows to move teh given key/value int the last index.
|
Char2IntSortedMap |
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.
|
int |
lastIntValue()
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.
|
int |
putAndMoveToFirst(char key,
int value)
A customized put method that allows you to insert into the first index.
|
int |
putAndMoveToLast(char key,
int value)
A customized put method that allows you to insert into the last index.
|
Char2IntSortedMap |
subMap(char fromKey,
char toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Char2IntSortedMap |
tailMap(char fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
IntCollection |
values() |
addTo, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, get, getInt, getOrDefault, mergeAllInt, mergeInt, put, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceInts, replaceInts, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getInt, getOrDefault, getOrDefault, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValuepublic Char2IntLinkedOpenCustomHashMap(CharStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2IntLinkedOpenCustomHashMap(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 Char2IntLinkedOpenCustomHashMap(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 Char2IntLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Integer[] 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 Char2IntLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Integer[] 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 Char2IntLinkedOpenCustomHashMap(char[] keys,
int[] 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 Char2IntLinkedOpenCustomHashMap(char[] keys,
int[] 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 Char2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> 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 Char2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> 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 Char2IntLinkedOpenCustomHashMap(Char2IntMap 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 Char2IntLinkedOpenCustomHashMap(Char2IntMap 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 int putAndMoveToFirst(char key,
int value)
Char2IntSortedMapputAndMoveToFirst in interface Char2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public int putAndMoveToLast(char key,
int value)
Char2IntSortedMapputAndMoveToLast in interface Char2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(char key)
Char2IntSortedMapmoveToFirst in interface Char2IntSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(char key)
Char2IntSortedMapmoveToLast in interface Char2IntSortedMapkey - that should be moved to the first lastpublic int getAndMoveToFirst(char key)
Char2IntSortedMapgetAndMoveToFirst in interface Char2IntSortedMapkey - that is searched forpublic int getAndMoveToLast(char key)
Char2IntSortedMapgetAndMoveToLast in interface Char2IntSortedMapkey - that is searched forpublic CharComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Character,java.lang.Integer>comparator in interface Char2IntSortedMappublic Char2IntSortedMap subMap(char fromKey, char toKey)
Char2IntSortedMapsubMap in interface Char2IntSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Char2IntSortedMap headMap(char toKey)
Char2IntSortedMapheadMap in interface Char2IntSortedMaptoKey - where the headMap should endpublic Char2IntSortedMap tailMap(char fromKey)
Char2IntSortedMaptailMap in interface Char2IntSortedMapfromKey - where the TailMap should startpublic char firstCharKey()
Char2IntSortedMapfirstCharKey in interface Char2IntSortedMappublic char pollFirstCharKey()
Char2IntSortedMappollFirstCharKey in interface Char2IntSortedMappublic char lastCharKey()
Char2IntSortedMaplastCharKey in interface Char2IntSortedMappublic char pollLastCharKey()
Char2IntSortedMappollLastCharKey in interface Char2IntSortedMappublic int firstIntValue()
Char2IntSortedMapfirstIntValue in interface Char2IntSortedMappublic int lastIntValue()
Char2IntSortedMaplastIntValue in interface Char2IntSortedMappublic ObjectSet<Char2IntMap.Entry> char2IntEntrySet()
Char2IntMapchar2IntEntrySet in interface Char2IntMapchar2IntEntrySet in class Char2IntOpenCustomHashMappublic CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Integer>keySet in interface java.util.SortedMap<java.lang.Character,java.lang.Integer>keySet in interface Char2IntMapkeySet in interface Char2IntSortedMapkeySet in class Char2IntOpenCustomHashMappublic IntCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Integer>values in interface java.util.SortedMap<java.lang.Character,java.lang.Integer>values in interface Char2IntMapvalues in interface Char2IntSortedMapvalues in class Char2IntOpenCustomHashMappublic void forEach(CharIntConsumer action)
Char2IntMapforEach in interface Char2IntMapforEach in class Char2IntOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Integer>clear in class Char2IntOpenCustomHashMap