public class Int2CharLinkedOpenCustomHashMap extends Int2CharOpenCustomHashMap implements Int2CharOrderedMap
AbstractInt2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2CharOrderedMap.FastOrderedSetInt2CharMap.BuilderCache, Int2CharMap.Entry, Int2CharMap.FastEntrySet, Int2CharMap.MapBuilder| Constructor and Description |
|---|
Int2CharLinkedOpenCustomHashMap(int[] keys,
char[] values,
float loadFactor,
IntStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Int2CharLinkedOpenCustomHashMap(int[] keys,
char[] values,
IntStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Int2CharLinkedOpenCustomHashMap(Int2CharMap map,
float loadFactor,
IntStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2CharLinkedOpenCustomHashMap(Int2CharMap map,
IntStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2CharLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Character[] values,
float loadFactor,
IntStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2CharLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Character[] values,
IntStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2CharLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
IntStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Int2CharLinkedOpenCustomHashMap(int minCapacity,
IntStrategy strategy)
Constructor that defines the minimum capacity
|
Int2CharLinkedOpenCustomHashMap(IntStrategy strategy)
Default Constructor
|
Int2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Character> map,
float loadFactor,
IntStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Int2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Character> map,
IntStrategy 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 |
|---|---|
void |
clear() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
Int2CharLinkedOpenCustomHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
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.
|
ObjectOrderedSet<Int2CharMap.Entry> |
int2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntOrderedSet |
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.
|
CharCollection |
values() |
addTo, computeChar, computeCharIfAbsent, computeCharIfPresent, containsKey, containsKey, containsValue, containsValue, get, get, getOrDefault, mergeAllChar, mergeChar, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyCharIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceChars, replaceChars, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, builder, compute, computeChar, computeCharIfAbsent, computeCharIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllChar, mergeChar, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValue, subFrom, supplyCharIfAbsentclearAndTrim, trimpublic Int2CharLinkedOpenCustomHashMap(IntStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2CharLinkedOpenCustomHashMap(int minCapacity,
IntStrategy 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 Int2CharLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
IntStrategy 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 Int2CharLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Character[] values,
IntStrategy 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 Int2CharLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Character[] values,
float loadFactor,
IntStrategy 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 Int2CharLinkedOpenCustomHashMap(int[] keys,
char[] values,
IntStrategy 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 Int2CharLinkedOpenCustomHashMap(int[] keys,
char[] values,
float loadFactor,
IntStrategy 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 Int2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Character> map,
IntStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2CharLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Character> map,
float loadFactor,
IntStrategy 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 Int2CharLinkedOpenCustomHashMap(Int2CharMap map, IntStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2CharLinkedOpenCustomHashMap(Int2CharMap map, float loadFactor, IntStrategy 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(int key,
char value)
Int2CharOrderedMapputAndMoveToFirst in interface Int2CharOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(int key,
char value)
Int2CharOrderedMapputAndMoveToLast in interface Int2CharOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2CharOrderedMapmoveToFirst in interface Int2CharOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2CharOrderedMapmoveToLast in interface Int2CharOrderedMapkey - that should be moved to the first lastpublic char getAndMoveToFirst(int key)
Int2CharOrderedMapgetAndMoveToFirst in interface Int2CharOrderedMapkey - that is searched forpublic char getAndMoveToLast(int key)
Int2CharOrderedMapgetAndMoveToLast in interface Int2CharOrderedMapkey - that is searched forpublic Int2CharLinkedOpenCustomHashMap copy()
Int2CharMapcopy in interface Int2CharMapcopy in interface Int2CharOrderedMapcopy in class Int2CharOpenCustomHashMappublic int firstIntKey()
Int2CharOrderedMapfirstIntKey in interface Int2CharOrderedMappublic int pollFirstIntKey()
Int2CharOrderedMappollFirstIntKey in interface Int2CharOrderedMappublic int lastIntKey()
Int2CharOrderedMaplastIntKey in interface Int2CharOrderedMappublic int pollLastIntKey()
Int2CharOrderedMappollLastIntKey in interface Int2CharOrderedMappublic char firstCharValue()
Int2CharOrderedMapfirstCharValue in interface Int2CharOrderedMappublic char lastCharValue()
Int2CharOrderedMaplastCharValue in interface Int2CharOrderedMappublic ObjectOrderedSet<Int2CharMap.Entry> int2CharEntrySet()
Int2CharMapint2CharEntrySet in interface Int2CharMapint2CharEntrySet in interface Int2CharOrderedMapint2CharEntrySet in class Int2CharOpenCustomHashMappublic IntOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Character>keySet in interface Int2CharMapkeySet in interface Int2CharOrderedMapkeySet in class Int2CharOpenCustomHashMappublic CharCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Character>values in interface Int2CharMapvalues in class Int2CharOpenCustomHashMappublic void forEach(IntCharConsumer action)
Int2CharMapforEach in interface Int2CharMapforEach in class Int2CharOpenCustomHashMapaction - 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 Int2CharOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Int2CharOpenCustomHashMapsize - the amount of elements that should be allowed