T - the type of elements maintained by this Collectionpublic class LinkedEnum2ByteMap<T extends java.lang.Enum<T>> extends Enum2ByteMap<T> implements Object2ByteSortedMap<T>
AbstractObject2ByteMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2ByteSortedMap.FastSortedSet<T>Object2ByteMap.Entry<T>, Object2ByteMap.FastEntrySet<T>| Constructor and Description |
|---|
LinkedEnum2ByteMap(java.lang.Class<T> keyType)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.util.Comparator<T> |
comparator() |
byte |
firstByteValue()
A method to get the first Value of a Map.
|
T |
firstKey() |
void |
forEach(ObjectByteConsumer<T> action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
getAndMoveToFirst(T key)
A Specific get method that allows to move teh given key/value int the first index.
|
byte |
getAndMoveToLast(T key)
A Specific get method that allows to move teh given key/value int the last index.
|
Object2ByteSortedMap<T> |
headMap(T toKey) |
ObjectSet<T> |
keySet() |
byte |
lastByteValue()
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<Object2ByteMap.Entry<T>> |
object2ByteEntrySet()
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.
|
byte |
putAndMoveToFirst(T key,
byte value)
A customized put method that allows you to insert into the first index.
|
byte |
putAndMoveToLast(T key,
byte value)
A customized put method that allows you to insert into the last index.
|
Object2ByteSortedMap<T> |
subMap(T fromKey,
T toKey) |
Object2ByteSortedMap<T> |
tailMap(T fromKey) |
ByteCollection |
values() |
addTo, containsKey, containsValue, getByte, getOrDefault, put, putIfAbsent, rem, remOrDefault, removeaddToAll, computeByte, computeByteIfAbsent, computeByteIfPresent, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllByte, mergeByte, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBytes, replaceBytes, setDefaultReturnValuecontainsValue, isEmpty, put, remove, size, toStringaddTo, addToAll, compute, computeByte, computeByteIfAbsent, computeByteIfPresent, computeIfAbsent, computeIfPresent, containsValue, containsValue, entrySet, forEach, get, getByte, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllByte, mergeByte, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBytes, replaceBytes, setDefaultReturnValuepublic LinkedEnum2ByteMap(java.lang.Class<T> keyType)
keyType - the type of Enum that should be usedpublic byte putAndMoveToFirst(T key, byte value)
Object2ByteSortedMapputAndMoveToFirst in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public byte putAndMoveToLast(T key, byte value)
Object2ByteSortedMapputAndMoveToLast in interface Object2ByteSortedMap<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)
Object2ByteSortedMapmoveToFirst in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2ByteSortedMapmoveToLast in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>key - that should be moved to the first lastpublic byte getAndMoveToFirst(T key)
Object2ByteSortedMapgetAndMoveToFirst in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>key - that is searched forpublic byte getAndMoveToLast(T key)
Object2ByteSortedMapgetAndMoveToLast in interface Object2ByteSortedMap<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.Byte>comparator in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>public Object2ByteSortedMap<T> subMap(T fromKey, T toKey)
public Object2ByteSortedMap<T> headMap(T toKey)
public Object2ByteSortedMap<T> tailMap(T fromKey)
public T firstKey()
public T pollFirstKey()
Object2ByteSortedMappollFirstKey in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>public T lastKey()
public T pollLastKey()
Object2ByteSortedMappollLastKey in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>public byte firstByteValue()
Object2ByteSortedMapfirstByteValue in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>public byte lastByteValue()
Object2ByteSortedMaplastByteValue in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>public ObjectSet<Object2ByteMap.Entry<T>> object2ByteEntrySet()
Object2ByteMapobject2ByteEntrySet in interface Object2ByteMap<T extends java.lang.Enum<T>>object2ByteEntrySet in class Enum2ByteMap<T extends java.lang.Enum<T>>public ObjectSet<T> keySet()
keySet in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Byte>keySet in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Byte>keySet in interface Object2ByteMap<T extends java.lang.Enum<T>>keySet in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>keySet in class Enum2ByteMap<T extends java.lang.Enum<T>>public ByteCollection values()
values in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Byte>values in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Byte>values in interface Object2ByteMap<T extends java.lang.Enum<T>>values in interface Object2ByteSortedMap<T extends java.lang.Enum<T>>values in class Enum2ByteMap<T extends java.lang.Enum<T>>public void forEach(ObjectByteConsumer<T> action)
Object2ByteMapforEach in interface Object2ByteMap<T extends java.lang.Enum<T>>forEach in class AbstractObject2ByteMap<T extends java.lang.Enum<T>>action - processor of the values that are iterator over