T - the type of elements maintained by this Collectionpublic class LinkedEnum2CharMap<T extends java.lang.Enum<T>> extends Enum2CharMap<T> implements Object2CharOrderedMap<T>
AbstractObject2CharMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2CharOrderedMap.FastOrderedSet<T>Object2CharMap.BuilderCache<T>, Object2CharMap.Entry<T>, Object2CharMap.FastEntrySet<T>, Object2CharMap.MapBuilder| Constructor and Description |
|---|
LinkedEnum2CharMap(java.lang.Class<T> keyType)
Default Constructor
|
LinkedEnum2CharMap(java.util.Map<? extends T,? extends java.lang.Character> map)
A Helper constructor that allows to create a EnumMap with exactly the same values as the provided map.
|
LinkedEnum2CharMap(Object2CharMap<T> map)
A Type Specific Helper function that allows to create a new EnumMap with exactly the same values as the provided map.
|
LinkedEnum2CharMap(T[] keys,
char[] values)
Helper constructor that allow to create a EnumMap from unboxed values
|
LinkedEnum2CharMap(T[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a EnumMap from boxed values (it will unbox them)
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
LinkedEnum2CharMap<T> |
copy()
A Function that does a shallow clone of the Map itself.
|
char |
firstCharValue()
A method to get the first Value of a Map.
|
T |
firstKey()
A method to get the first Key of a Map.
|
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.
|
ObjectOrderedSet<T> |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
T |
lastKey()
A method to get the last Key of a Map.
|
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.
|
ObjectOrderedSet<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.
|
CharCollection |
values() |
addTo, computeChar, computeCharIfAbsent, computeCharIfPresent, containsKey, containsValue, getChar, getOrDefault, mergeAllChar, mergeChar, put, putIfAbsent, rem, remOrDefault, remove, remove, replace, replace, size, subFrom, supplyCharIfAbsentaddToAll, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceChars, replaceChars, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, builder, compute, computeChar, computeCharIfAbsent, computeCharIfPresent, computeIfAbsent, computeIfPresent, containsValue, containsValue, entrySet, forEach, get, getChar, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllChar, mergeChar, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValue, subFrom, supplyCharIfAbsentpublic LinkedEnum2CharMap(java.lang.Class<T> keyType)
keyType - the type of Enum that should be usedpublic LinkedEnum2CharMap(T[] keys, java.lang.Character[] values)
keys - the keys that should be put into the EnumMapvalues - the values that should be put into the EnumMap.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic LinkedEnum2CharMap(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 LinkedEnum2CharMap(java.util.Map<? extends T,? extends java.lang.Character> map)
map - the values that should be present in the mappublic LinkedEnum2CharMap(Object2CharMap<T> map)
map - the values that should be present in the mappublic char putAndMoveToFirst(T key, char value)
Object2CharOrderedMapputAndMoveToFirst in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(T key, char value)
Object2CharOrderedMapputAndMoveToLast in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(T key)
Object2CharOrderedMapmoveToFirst in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2CharOrderedMapmoveToLast in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>key - that should be moved to the first lastpublic char getAndMoveToFirst(T key)
Object2CharOrderedMapgetAndMoveToFirst in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>key - that is searched forpublic char getAndMoveToLast(T key)
Object2CharOrderedMapgetAndMoveToLast in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>key - that is searched forpublic LinkedEnum2CharMap<T> copy()
Object2CharMapcopy in interface Object2CharMap<T extends java.lang.Enum<T>>copy in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>copy in class Enum2CharMap<T extends java.lang.Enum<T>>public T firstKey()
Object2CharOrderedMapfirstKey in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>public T pollFirstKey()
Object2CharOrderedMappollFirstKey in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>public T lastKey()
Object2CharOrderedMaplastKey in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>public T pollLastKey()
Object2CharOrderedMappollLastKey in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>public char firstCharValue()
Object2CharOrderedMapfirstCharValue in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>public char lastCharValue()
Object2CharOrderedMaplastCharValue in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>public ObjectOrderedSet<Object2CharMap.Entry<T>> object2CharEntrySet()
Object2CharMapobject2CharEntrySet in interface Object2CharMap<T extends java.lang.Enum<T>>object2CharEntrySet in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>object2CharEntrySet in class Enum2CharMap<T extends java.lang.Enum<T>>public ObjectOrderedSet<T> keySet()
keySet in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Character>keySet in interface Object2CharMap<T extends java.lang.Enum<T>>keySet in interface Object2CharOrderedMap<T extends java.lang.Enum<T>>keySet in class Enum2CharMap<T extends java.lang.Enum<T>>public CharCollection values()
values in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Character>values in interface Object2CharMap<T extends java.lang.Enum<T>>values in class Enum2CharMap<T extends java.lang.Enum<T>>public void forEach(ObjectCharConsumer<T> action)
Object2CharMapforEach in interface Object2CharMap<T extends java.lang.Enum<T>>forEach in class Enum2CharMap<T extends java.lang.Enum<T>>action - processor of the values that are iterator over