public class Int2CharLinkedOpenHashMap extends Int2CharOpenHashMap implements Int2CharSortedMap
AbstractInt2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2CharSortedMap.FastSortedSetInt2CharMap.Entry, Int2CharMap.FastEntrySet| Constructor and Description |
|---|
Int2CharLinkedOpenHashMap()
Default Constructor
|
Int2CharLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Int2CharLinkedOpenHashMap(int[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Int2CharLinkedOpenHashMap(int[] keys,
char[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Int2CharLinkedOpenHashMap(Int2CharMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2CharLinkedOpenHashMap(Int2CharMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2CharLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2CharLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Character[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2CharLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Int2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Int2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Character> 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 |
|---|---|
void |
clear() |
IntComparator |
comparator() |
char |
firstCharValue()
A method to get the first Value of a Map.
|
int |
firstIntKey()
A method to get the first Key of a Map.
|
void |
forEach(IntCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
getAndMoveToFirst(int key)
A Specific get method that allows to move teh given key/value int the first index.
|
char |
getAndMoveToLast(int key)
A Specific get method that allows to move teh given key/value int the last index.
|
Int2CharSortedMap |
headMap(int toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ObjectSet<Int2CharMap.Entry> |
int2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
int |
lastIntKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(int key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(int key)
A specific move method to move a given key/value to the last index.
|
int |
pollFirstIntKey()
A method to get and remove the first Key of a Map.
|
int |
pollLastIntKey()
A method to get and remove the last Key of a Map.
|
char |
putAndMoveToFirst(int key,
char value)
A customized put method that allows you to insert into the first index.
|
char |
putAndMoveToLast(int key,
char value)
A customized put method that allows you to insert into the last index.
|
Int2CharSortedMap |
subMap(int fromKey,
int toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Int2CharSortedMap |
tailMap(int 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, remInt, remIntOrDefault, remove, remove, remove, 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, remInt, remIntOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Int2CharLinkedOpenHashMap()
public Int2CharLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Int2CharLinkedOpenHashMap(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 Int2CharLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Character[] 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 Int2CharLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Character[] 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 Int2CharLinkedOpenHashMap(int[] keys,
char[] 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 Int2CharLinkedOpenHashMap(int[] keys,
char[] 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 Int2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Int2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Character> 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 Int2CharLinkedOpenHashMap(Int2CharMap map)
map - the values that should be present in the mappublic Int2CharLinkedOpenHashMap(Int2CharMap 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 char putAndMoveToFirst(int key,
char value)
Int2CharSortedMapputAndMoveToFirst in interface Int2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(int key,
char value)
Int2CharSortedMapputAndMoveToLast in interface Int2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2CharSortedMapmoveToFirst in interface Int2CharSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2CharSortedMapmoveToLast in interface Int2CharSortedMapkey - that should be moved to the first lastpublic char getAndMoveToFirst(int key)
Int2CharSortedMapgetAndMoveToFirst in interface Int2CharSortedMapkey - that is searched forpublic char getAndMoveToLast(int key)
Int2CharSortedMapgetAndMoveToLast in interface Int2CharSortedMapkey - that is searched forpublic IntComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Integer,java.lang.Character>comparator in interface Int2CharSortedMappublic Int2CharSortedMap subMap(int fromKey, int toKey)
Int2CharSortedMapsubMap in interface Int2CharSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Int2CharSortedMap headMap(int toKey)
Int2CharSortedMapheadMap in interface Int2CharSortedMaptoKey - where the headMap should endpublic Int2CharSortedMap tailMap(int fromKey)
Int2CharSortedMaptailMap in interface Int2CharSortedMapfromKey - where the TailMap should startpublic int firstIntKey()
Int2CharSortedMapfirstIntKey in interface Int2CharSortedMappublic int pollFirstIntKey()
Int2CharSortedMappollFirstIntKey in interface Int2CharSortedMappublic int lastIntKey()
Int2CharSortedMaplastIntKey in interface Int2CharSortedMappublic int pollLastIntKey()
Int2CharSortedMappollLastIntKey in interface Int2CharSortedMappublic char firstCharValue()
Int2CharSortedMapfirstCharValue in interface Int2CharSortedMappublic char lastCharValue()
Int2CharSortedMaplastCharValue in interface Int2CharSortedMappublic ObjectSet<Int2CharMap.Entry> int2CharEntrySet()
Int2CharMapint2CharEntrySet in interface Int2CharMapint2CharEntrySet in class Int2CharOpenHashMappublic IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Integer,java.lang.Character>keySet in interface Int2CharMapkeySet in interface Int2CharSortedMapkeySet in class Int2CharOpenHashMappublic CharCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Character>values in interface java.util.SortedMap<java.lang.Integer,java.lang.Character>values in interface Int2CharMapvalues in interface Int2CharSortedMapvalues in class Int2CharOpenHashMappublic void forEach(IntCharConsumer action)
Int2CharMapforEach in interface Int2CharMapforEach in class Int2CharOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Integer,java.lang.Character>clear in class Int2CharOpenHashMap