T - the type of elements maintained by this Collectionpublic class LinkedEnum2IntMap<T extends java.lang.Enum<T>> extends Enum2IntMap<T> implements Object2IntSortedMap<T>
AbstractObject2IntMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2IntSortedMap.FastSortedSet<T>Object2IntMap.Entry<T>, Object2IntMap.FastEntrySet<T>| Constructor and Description |
|---|
LinkedEnum2IntMap(java.lang.Class<T> keyType)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.util.Comparator<T> |
comparator() |
int |
firstIntValue()
A method to get the first Value of a Map.
|
T |
firstKey() |
void |
forEach(ObjectIntConsumer<T> action)
Type Specific forEach method to reduce boxing/unboxing
|
int |
getAndMoveToFirst(T key)
A Specific get method that allows to move teh given key/value int the first index.
|
int |
getAndMoveToLast(T key)
A Specific get method that allows to move teh given key/value int the last index.
|
Object2IntSortedMap<T> |
headMap(T toKey) |
ObjectSet<T> |
keySet() |
int |
lastIntValue()
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<Object2IntMap.Entry<T>> |
object2IntEntrySet()
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.
|
int |
putAndMoveToFirst(T key,
int value)
A customized put method that allows you to insert into the first index.
|
int |
putAndMoveToLast(T key,
int value)
A customized put method that allows you to insert into the last index.
|
Object2IntSortedMap<T> |
subMap(T fromKey,
T toKey) |
Object2IntSortedMap<T> |
tailMap(T fromKey) |
IntCollection |
values() |
addTo, containsKey, containsValue, getInt, getOrDefault, put, putIfAbsent, rem, remOrDefault, removeaddToAll, computeInt, computeIntIfAbsent, computeIntIfPresent, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllInt, mergeInt, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceInts, replaceInts, setDefaultReturnValuecontainsValue, isEmpty, put, remove, size, toStringaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getInt, getOrDefault, getOrDefault, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValueapplyAsIntpublic LinkedEnum2IntMap(java.lang.Class<T> keyType)
keyType - the type of Enum that should be usedpublic int putAndMoveToFirst(T key, int value)
Object2IntSortedMapputAndMoveToFirst in interface Object2IntSortedMap<T extends java.lang.Enum<T>>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public int putAndMoveToLast(T key, int value)
Object2IntSortedMapputAndMoveToLast in interface Object2IntSortedMap<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)
Object2IntSortedMapmoveToFirst in interface Object2IntSortedMap<T extends java.lang.Enum<T>>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2IntSortedMapmoveToLast in interface Object2IntSortedMap<T extends java.lang.Enum<T>>key - that should be moved to the first lastpublic int getAndMoveToFirst(T key)
Object2IntSortedMapgetAndMoveToFirst in interface Object2IntSortedMap<T extends java.lang.Enum<T>>key - that is searched forpublic int getAndMoveToLast(T key)
Object2IntSortedMapgetAndMoveToLast in interface Object2IntSortedMap<T extends java.lang.Enum<T>>key - that is searched forpublic java.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Integer>comparator in interface Object2IntSortedMap<T extends java.lang.Enum<T>>public Object2IntSortedMap<T> subMap(T fromKey, T toKey)
public Object2IntSortedMap<T> headMap(T toKey)
public Object2IntSortedMap<T> tailMap(T fromKey)
public T firstKey()
public T pollFirstKey()
Object2IntSortedMappollFirstKey in interface Object2IntSortedMap<T extends java.lang.Enum<T>>public T lastKey()
public T pollLastKey()
Object2IntSortedMappollLastKey in interface Object2IntSortedMap<T extends java.lang.Enum<T>>public int firstIntValue()
Object2IntSortedMapfirstIntValue in interface Object2IntSortedMap<T extends java.lang.Enum<T>>public int lastIntValue()
Object2IntSortedMaplastIntValue in interface Object2IntSortedMap<T extends java.lang.Enum<T>>public ObjectSet<Object2IntMap.Entry<T>> object2IntEntrySet()
Object2IntMapobject2IntEntrySet in interface Object2IntMap<T extends java.lang.Enum<T>>object2IntEntrySet in class Enum2IntMap<T extends java.lang.Enum<T>>public ObjectSet<T> keySet()
keySet in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Integer>keySet in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Integer>keySet in interface Object2IntMap<T extends java.lang.Enum<T>>keySet in interface Object2IntSortedMap<T extends java.lang.Enum<T>>keySet in class Enum2IntMap<T extends java.lang.Enum<T>>public IntCollection values()
values in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Integer>values in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Integer>values in interface Object2IntMap<T extends java.lang.Enum<T>>values in interface Object2IntSortedMap<T extends java.lang.Enum<T>>values in class Enum2IntMap<T extends java.lang.Enum<T>>public void forEach(ObjectIntConsumer<T> action)
Object2IntMapforEach in interface Object2IntMap<T extends java.lang.Enum<T>>forEach in class AbstractObject2IntMap<T extends java.lang.Enum<T>>action - processor of the values that are iterator over