public class Char2IntLinkedOpenHashMap extends Char2IntOpenHashMap implements Char2IntSortedMap
AbstractChar2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2IntSortedMap.FastSortedSetChar2IntMap.Entry, Char2IntMap.FastEntrySet| Constructor and Description |
|---|
Char2IntLinkedOpenHashMap()
Default Constructor
|
Char2IntLinkedOpenHashMap(char[] keys,
int[] values)
Helper constructor that allow to create a map from unboxed values
|
Char2IntLinkedOpenHashMap(char[] keys,
int[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Char2IntLinkedOpenHashMap(Char2IntMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2IntLinkedOpenHashMap(Char2IntMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2IntLinkedOpenHashMap(java.lang.Character[] keys,
java.lang.Integer[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2IntLinkedOpenHashMap(java.lang.Character[] keys,
java.lang.Integer[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2IntLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Char2IntLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Char2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> 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<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 Char2IntLinkedOpenHashMap()
public Char2IntLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Char2IntLinkedOpenHashMap(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 Char2IntLinkedOpenHashMap(java.lang.Character[] keys,
java.lang.Integer[] 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 Char2IntLinkedOpenHashMap(java.lang.Character[] keys,
java.lang.Integer[] 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 Char2IntLinkedOpenHashMap(char[] keys,
int[] 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 Char2IntLinkedOpenHashMap(char[] keys,
int[] 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 Char2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> map)
map - the values that should be present in the mappublic Char2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> 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 Char2IntLinkedOpenHashMap(Char2IntMap map)
map - the values that should be present in the mappublic Char2IntLinkedOpenHashMap(Char2IntMap 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 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 Char2IntOpenHashMappublic 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 Char2IntOpenHashMappublic 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 Char2IntOpenHashMappublic void forEach(CharIntConsumer action)
Char2IntMapforEach in interface Char2IntMapforEach in class Char2IntOpenHashMapaction - 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 Char2IntOpenHashMap