public class Int2CharLinkedOpenHashMap extends Int2CharOpenHashMap 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 |
|---|
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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
boolean |
containsValue(char value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Int2CharLinkedOpenHashMap |
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, 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, 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 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)
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 boolean containsValue(char value)
Int2CharMapcontainsValue in interface Int2CharMapcontainsValue in class Int2CharOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Integer,java.lang.Character>containsValue in interface Int2CharMapcontainsValue in class Int2CharOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Int2CharLinkedOpenHashMap copy()
Int2CharMapcopy in interface Int2CharMapcopy in interface Int2CharOrderedMapcopy in class Int2CharOpenHashMappublic 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 Int2CharOpenHashMappublic IntOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Character>keySet in interface Int2CharMapkeySet in interface Int2CharOrderedMapkeySet in class Int2CharOpenHashMappublic CharCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Character>values in interface Int2CharMapvalues 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 Int2CharOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Int2CharOpenHashMapsize - the amount of elements that should be allowed