T - the type of elements maintained by this Collectionpublic class Object2CharLinkedOpenHashMap<T> extends Object2CharOpenHashMap<T> implements Object2CharSortedMap<T>
AbstractObject2CharMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2CharSortedMap.FastSortedSet<T>Object2CharMap.Entry<T>, Object2CharMap.FastEntrySet<T>| Constructor and Description |
|---|
Object2CharLinkedOpenHashMap()
Default Constructor
|
Object2CharLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Object2CharLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Object2CharLinkedOpenHashMap(java.util.Map<? extends T,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Object2CharLinkedOpenHashMap(java.util.Map<? extends T,? 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.
|
Object2CharLinkedOpenHashMap(Object2CharMap<T> map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Object2CharLinkedOpenHashMap(Object2CharMap<T> map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Object2CharLinkedOpenHashMap(T[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Object2CharLinkedOpenHashMap(T[] keys,
char[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Object2CharLinkedOpenHashMap(T[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Object2CharLinkedOpenHashMap(T[] keys,
java.lang.Character[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.util.Comparator<T> |
comparator() |
char |
firstCharValue()
A method to get the first Value of a Map.
|
T |
firstKey() |
void |
forEach(ObjectCharConsumer<T> action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
getAndMoveToFirst(T key)
A Specific get method that allows to move teh given key/value int the first index.
|
char |
getAndMoveToLast(T key)
A Specific get method that allows to move teh given key/value int the last index.
|
Object2CharSortedMap<T> |
headMap(T toKey) |
ObjectSet<T> |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
T |
lastKey() |
boolean |
moveToFirst(T key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(T key)
A specific move method to move a given key/value to the last index.
|
ObjectSet<Object2CharMap.Entry<T>> |
object2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
T |
pollFirstKey()
A method to get and remove the first Key of a Map.
|
T |
pollLastKey()
A method to get and remove the last Key of a Map.
|
char |
putAndMoveToFirst(T key,
char value)
A customized put method that allows you to insert into the first index.
|
char |
putAndMoveToLast(T key,
char value)
A customized put method that allows you to insert into the last index.
|
Object2CharSortedMap<T> |
subMap(T fromKey,
T toKey) |
Object2CharSortedMap<T> |
tailMap(T fromKey) |
CharCollection |
values() |
addTo, computeChar, computeCharIfAbsent, computeCharIfPresent, containsKey, containsValue, containsValue, get, getChar, getOrDefault, mergeAllChar, mergeChar, put, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceChars, replaceChars, setDefaultReturnValueaddTo, addToAll, compute, computeChar, computeCharIfAbsent, computeCharIfPresent, computeIfAbsent, computeIfPresent, containsValue, containsValue, entrySet, forEach, get, getChar, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllChar, mergeChar, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Object2CharLinkedOpenHashMap()
public Object2CharLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Object2CharLinkedOpenHashMap(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 Object2CharLinkedOpenHashMap(T[] 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 Object2CharLinkedOpenHashMap(T[] 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 Object2CharLinkedOpenHashMap(T[] 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 Object2CharLinkedOpenHashMap(T[] 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 Object2CharLinkedOpenHashMap(java.util.Map<? extends T,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Object2CharLinkedOpenHashMap(java.util.Map<? extends T,? 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 Object2CharLinkedOpenHashMap(Object2CharMap<T> map)
map - the values that should be present in the mappublic Object2CharLinkedOpenHashMap(Object2CharMap<T> 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(T key, char value)
Object2CharSortedMapputAndMoveToFirst in interface Object2CharSortedMap<T>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(T key, char value)
Object2CharSortedMapputAndMoveToLast in interface Object2CharSortedMap<T>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(T key)
Object2CharSortedMapmoveToFirst in interface Object2CharSortedMap<T>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2CharSortedMapmoveToLast in interface Object2CharSortedMap<T>key - that should be moved to the first lastpublic char getAndMoveToFirst(T key)
Object2CharSortedMapgetAndMoveToFirst in interface Object2CharSortedMap<T>key - that is searched forpublic char getAndMoveToLast(T key)
Object2CharSortedMapgetAndMoveToLast in interface Object2CharSortedMap<T>key - that is searched forpublic java.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T,java.lang.Character>comparator in interface Object2CharSortedMap<T>public Object2CharSortedMap<T> subMap(T fromKey, T toKey)
subMap in interface java.util.SortedMap<T,java.lang.Character>subMap in interface Object2CharSortedMap<T>public Object2CharSortedMap<T> headMap(T toKey)
headMap in interface java.util.SortedMap<T,java.lang.Character>headMap in interface Object2CharSortedMap<T>public Object2CharSortedMap<T> tailMap(T fromKey)
tailMap in interface java.util.SortedMap<T,java.lang.Character>tailMap in interface Object2CharSortedMap<T>public T firstKey()
firstKey in interface java.util.SortedMap<T,java.lang.Character>public T pollFirstKey()
Object2CharSortedMappollFirstKey in interface Object2CharSortedMap<T>public T lastKey()
lastKey in interface java.util.SortedMap<T,java.lang.Character>public T pollLastKey()
Object2CharSortedMappollLastKey in interface Object2CharSortedMap<T>public char firstCharValue()
Object2CharSortedMapfirstCharValue in interface Object2CharSortedMap<T>public char lastCharValue()
Object2CharSortedMaplastCharValue in interface Object2CharSortedMap<T>public ObjectSet<Object2CharMap.Entry<T>> object2CharEntrySet()
Object2CharMapobject2CharEntrySet in interface Object2CharMap<T>object2CharEntrySet in class Object2CharOpenHashMap<T>public ObjectSet<T> keySet()
keySet in interface java.util.Map<T,java.lang.Character>keySet in interface java.util.SortedMap<T,java.lang.Character>keySet in interface Object2CharMap<T>keySet in interface Object2CharSortedMap<T>keySet in class Object2CharOpenHashMap<T>public CharCollection values()
values in interface java.util.Map<T,java.lang.Character>values in interface java.util.SortedMap<T,java.lang.Character>values in interface Object2CharMap<T>values in interface Object2CharSortedMap<T>values in class Object2CharOpenHashMap<T>public void forEach(ObjectCharConsumer<T> action)
Object2CharMapforEach in interface Object2CharMap<T>forEach in class Object2CharOpenHashMap<T>action - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<T,java.lang.Character>clear in class Object2CharOpenHashMap<T>