V - the type of elements maintained by this Collectionpublic class Char2ObjectLinkedOpenHashMap<V> extends Char2ObjectOpenHashMap<V> implements Char2ObjectSortedMap<V>
AbstractChar2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2ObjectSortedMap.FastSortedSet<V>Char2ObjectMap.Entry<V>, Char2ObjectMap.FastEntrySet<V>| Constructor and Description |
|---|
Char2ObjectLinkedOpenHashMap()
Default Constructor
|
Char2ObjectLinkedOpenHashMap(char[] keys,
V[] values)
Helper constructor that allow to create a map from unboxed values
|
Char2ObjectLinkedOpenHashMap(char[] keys,
V[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Char2ObjectLinkedOpenHashMap(Char2ObjectMap<V> map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2ObjectLinkedOpenHashMap(Char2ObjectMap<V> map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2ObjectLinkedOpenHashMap(java.lang.Character[] keys,
V[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2ObjectLinkedOpenHashMap(java.lang.Character[] keys,
V[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2ObjectLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Char2ObjectLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Char2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends V> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends V> 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<Char2ObjectMap.Entry<V>> |
char2ObjectEntrySet()
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.
|
V |
firstValue()
A method to get the first Value of a Map.
|
void |
forEach(CharObjectConsumer<V> action)
Type Specific forEach method to reduce boxing/unboxing
|
V |
getAndMoveToFirst(char key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
getAndMoveToLast(char key)
A Specific get method that allows to move teh given key/value int the last index.
|
Char2ObjectSortedMap<V> |
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.
|
V |
lastValue()
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.
|
V |
putAndMoveToFirst(char key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(char key,
V value)
A customized put method that allows you to insert into the last index.
|
Char2ObjectSortedMap<V> |
subMap(char fromKey,
char toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Char2ObjectSortedMap<V> |
tailMap(char fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ObjectCollection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, get, getObject, getOrDefault, merge, mergeAll, put, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, sizeentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceObjects, replaceObjects, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapcompute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, containsKey, containsKey, entrySet, forEach, get, getDefaultReturnValue, getObject, getOrDefault, getOrDefault, merge, merge, mergeAll, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValuepublic Char2ObjectLinkedOpenHashMap()
public Char2ObjectLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Char2ObjectLinkedOpenHashMap(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 Char2ObjectLinkedOpenHashMap(java.lang.Character[] keys,
V[] 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 Char2ObjectLinkedOpenHashMap(java.lang.Character[] keys,
V[] 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 Char2ObjectLinkedOpenHashMap(char[] keys,
V[] 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 Char2ObjectLinkedOpenHashMap(char[] keys,
V[] 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 Char2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends V> map)
map - the values that should be present in the mappublic Char2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Character,? extends V> 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 Char2ObjectLinkedOpenHashMap(Char2ObjectMap<V> map)
map - the values that should be present in the mappublic Char2ObjectLinkedOpenHashMap(Char2ObjectMap<V> 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 V putAndMoveToFirst(char key, V value)
Char2ObjectSortedMapputAndMoveToFirst in interface Char2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(char key, V value)
Char2ObjectSortedMapputAndMoveToLast in interface Char2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(char key)
Char2ObjectSortedMapmoveToFirst in interface Char2ObjectSortedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(char key)
Char2ObjectSortedMapmoveToLast in interface Char2ObjectSortedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(char key)
Char2ObjectSortedMapgetAndMoveToFirst in interface Char2ObjectSortedMap<V>key - that is searched forpublic V getAndMoveToLast(char key)
Char2ObjectSortedMapgetAndMoveToLast in interface Char2ObjectSortedMap<V>key - that is searched forpublic CharComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Character,V>comparator in interface Char2ObjectSortedMap<V>public Char2ObjectSortedMap<V> subMap(char fromKey, char toKey)
Char2ObjectSortedMapsubMap in interface Char2ObjectSortedMap<V>fromKey - where the submap should starttoKey - where the subMap should endpublic Char2ObjectSortedMap<V> headMap(char toKey)
Char2ObjectSortedMapheadMap in interface Char2ObjectSortedMap<V>toKey - where the headMap should endpublic Char2ObjectSortedMap<V> tailMap(char fromKey)
Char2ObjectSortedMaptailMap in interface Char2ObjectSortedMap<V>fromKey - where the TailMap should startpublic char firstCharKey()
Char2ObjectSortedMapfirstCharKey in interface Char2ObjectSortedMap<V>public char pollFirstCharKey()
Char2ObjectSortedMappollFirstCharKey in interface Char2ObjectSortedMap<V>public char lastCharKey()
Char2ObjectSortedMaplastCharKey in interface Char2ObjectSortedMap<V>public char pollLastCharKey()
Char2ObjectSortedMappollLastCharKey in interface Char2ObjectSortedMap<V>public V firstValue()
Char2ObjectSortedMapfirstValue in interface Char2ObjectSortedMap<V>public V lastValue()
Char2ObjectSortedMaplastValue in interface Char2ObjectSortedMap<V>public ObjectSet<Char2ObjectMap.Entry<V>> char2ObjectEntrySet()
Char2ObjectMapchar2ObjectEntrySet in interface Char2ObjectMap<V>char2ObjectEntrySet in class Char2ObjectOpenHashMap<V>public CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,V>keySet in interface java.util.SortedMap<java.lang.Character,V>keySet in interface Char2ObjectMap<V>keySet in interface Char2ObjectSortedMap<V>keySet in class Char2ObjectOpenHashMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Character,V>values in interface java.util.SortedMap<java.lang.Character,V>values in interface Char2ObjectMap<V>values in interface Char2ObjectSortedMap<V>values in class Char2ObjectOpenHashMap<V>public void forEach(CharObjectConsumer<V> action)
Char2ObjectMapforEach in interface Char2ObjectMap<V>forEach in class Char2ObjectOpenHashMap<V>action - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Character,V>clear in class Char2ObjectOpenHashMap<V>