T - the type of elements maintained by this Collectionpublic class LinkedEnum2BooleanMap<T extends java.lang.Enum<T>> extends Enum2BooleanMap<T> implements Object2BooleanSortedMap<T>
AbstractObject2BooleanMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2BooleanSortedMap.FastSortedSet<T>Object2BooleanMap.Entry<T>, Object2BooleanMap.FastEntrySet<T>| Constructor and Description |
|---|
LinkedEnum2BooleanMap(java.lang.Class<T> keyType)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.util.Comparator<T> |
comparator() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
T |
firstKey() |
void |
forEach(ObjectBooleanConsumer<T> action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(T key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(T key)
A Specific get method that allows to move teh given key/value int the last index.
|
Object2BooleanSortedMap<T> |
headMap(T toKey) |
ObjectSet<T> |
keySet() |
boolean |
lastBooleanValue()
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<Object2BooleanMap.Entry<T>> |
object2BooleanEntrySet()
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.
|
boolean |
putAndMoveToFirst(T key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(T key,
boolean value)
A customized put method that allows you to insert into the last index.
|
Object2BooleanSortedMap<T> |
subMap(T fromKey,
T toKey) |
Object2BooleanSortedMap<T> |
tailMap(T fromKey) |
BooleanCollection |
values() |
containsKey, containsValue, getBoolean, getOrDefault, put, putIfAbsent, rem, remOrDefault, removecomputeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllBoolean, mergeBoolean, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBooleans, replaceBooleans, setDefaultReturnValuecontainsValue, isEmpty, put, remove, size, toStringcompute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsValue, containsValue, entrySet, forEach, get, getBoolean, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic LinkedEnum2BooleanMap(java.lang.Class<T> keyType)
keyType - the type of Enum that should be usedpublic boolean putAndMoveToFirst(T key, boolean value)
Object2BooleanSortedMapputAndMoveToFirst in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(T key, boolean value)
Object2BooleanSortedMapputAndMoveToLast in interface Object2BooleanSortedMap<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)
Object2BooleanSortedMapmoveToFirst in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2BooleanSortedMapmoveToLast in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>key - that should be moved to the first lastpublic boolean getAndMoveToFirst(T key)
Object2BooleanSortedMapgetAndMoveToFirst in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>key - that is searched forpublic boolean getAndMoveToLast(T key)
Object2BooleanSortedMapgetAndMoveToLast in interface Object2BooleanSortedMap<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.Boolean>comparator in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>public Object2BooleanSortedMap<T> subMap(T fromKey, T toKey)
public Object2BooleanSortedMap<T> headMap(T toKey)
public Object2BooleanSortedMap<T> tailMap(T fromKey)
public T firstKey()
public T pollFirstKey()
Object2BooleanSortedMappollFirstKey in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>public T lastKey()
public T pollLastKey()
Object2BooleanSortedMappollLastKey in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>public boolean firstBooleanValue()
Object2BooleanSortedMapfirstBooleanValue in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>public boolean lastBooleanValue()
Object2BooleanSortedMaplastBooleanValue in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>public ObjectSet<Object2BooleanMap.Entry<T>> object2BooleanEntrySet()
Object2BooleanMapobject2BooleanEntrySet in interface Object2BooleanMap<T extends java.lang.Enum<T>>object2BooleanEntrySet in class Enum2BooleanMap<T extends java.lang.Enum<T>>public ObjectSet<T> keySet()
keySet in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Boolean>keySet in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Boolean>keySet in interface Object2BooleanMap<T extends java.lang.Enum<T>>keySet in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>keySet in class Enum2BooleanMap<T extends java.lang.Enum<T>>public BooleanCollection values()
values in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Boolean>values in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Boolean>values in interface Object2BooleanMap<T extends java.lang.Enum<T>>values in interface Object2BooleanSortedMap<T extends java.lang.Enum<T>>values in class Enum2BooleanMap<T extends java.lang.Enum<T>>public void forEach(ObjectBooleanConsumer<T> action)
Object2BooleanMapforEach in interface Object2BooleanMap<T extends java.lang.Enum<T>>forEach in class AbstractObject2BooleanMap<T extends java.lang.Enum<T>>action - processor of the values that are iterator over