T - the type of elements maintained by this Collectionpublic class Object2BooleanLinkedOpenHashMap<T> extends Object2BooleanOpenHashMap<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 |
|---|
Object2BooleanLinkedOpenHashMap()
Default Constructor
|
Object2BooleanLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Object2BooleanLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Object2BooleanLinkedOpenHashMap(java.util.Map<? extends T,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Object2BooleanLinkedOpenHashMap(java.util.Map<? extends T,? extends java.lang.Boolean> map,
float loadFactor)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Object2BooleanLinkedOpenHashMap(Object2BooleanMap<T> map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Object2BooleanLinkedOpenHashMap(Object2BooleanMap<T> map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Object2BooleanLinkedOpenHashMap(T[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Object2BooleanLinkedOpenHashMap(T[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Object2BooleanLinkedOpenHashMap(T[] keys,
boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Object2BooleanLinkedOpenHashMap(T[] keys,
java.lang.Boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
| 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() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsValue, containsValue, get, getBoolean, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, sizeentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuecompute, 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 Object2BooleanLinkedOpenHashMap()
public Object2BooleanLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Object2BooleanLinkedOpenHashMap(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 Object2BooleanLinkedOpenHashMap(T[] keys, java.lang.Boolean[] 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 Object2BooleanLinkedOpenHashMap(T[] keys, java.lang.Boolean[] 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 Object2BooleanLinkedOpenHashMap(T[] keys, boolean[] 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 Object2BooleanLinkedOpenHashMap(T[] keys, boolean[] 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 Object2BooleanLinkedOpenHashMap(java.util.Map<? extends T,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Object2BooleanLinkedOpenHashMap(java.util.Map<? extends T,? extends java.lang.Boolean> 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 Object2BooleanLinkedOpenHashMap(Object2BooleanMap<T> map)
map - the values that should be present in the mappublic Object2BooleanLinkedOpenHashMap(Object2BooleanMap<T> 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 boolean putAndMoveToFirst(T key, boolean value)
Object2BooleanSortedMapputAndMoveToFirst in interface Object2BooleanSortedMap<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>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>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2BooleanSortedMapmoveToLast in interface Object2BooleanSortedMap<T>key - that should be moved to the first lastpublic boolean getAndMoveToFirst(T key)
Object2BooleanSortedMapgetAndMoveToFirst in interface Object2BooleanSortedMap<T>key - that is searched forpublic boolean getAndMoveToLast(T key)
Object2BooleanSortedMapgetAndMoveToLast in interface Object2BooleanSortedMap<T>key - that is searched forpublic java.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T,java.lang.Boolean>comparator in interface Object2BooleanSortedMap<T>public Object2BooleanSortedMap<T> subMap(T fromKey, T toKey)
subMap in interface java.util.SortedMap<T,java.lang.Boolean>subMap in interface Object2BooleanSortedMap<T>public Object2BooleanSortedMap<T> headMap(T toKey)
headMap in interface java.util.SortedMap<T,java.lang.Boolean>headMap in interface Object2BooleanSortedMap<T>public Object2BooleanSortedMap<T> tailMap(T fromKey)
tailMap in interface java.util.SortedMap<T,java.lang.Boolean>tailMap in interface Object2BooleanSortedMap<T>public T firstKey()
firstKey in interface java.util.SortedMap<T,java.lang.Boolean>public T pollFirstKey()
Object2BooleanSortedMappollFirstKey in interface Object2BooleanSortedMap<T>public T lastKey()
lastKey in interface java.util.SortedMap<T,java.lang.Boolean>public T pollLastKey()
Object2BooleanSortedMappollLastKey in interface Object2BooleanSortedMap<T>public boolean firstBooleanValue()
Object2BooleanSortedMapfirstBooleanValue in interface Object2BooleanSortedMap<T>public boolean lastBooleanValue()
Object2BooleanSortedMaplastBooleanValue in interface Object2BooleanSortedMap<T>public ObjectSet<Object2BooleanMap.Entry<T>> object2BooleanEntrySet()
Object2BooleanMapobject2BooleanEntrySet in interface Object2BooleanMap<T>object2BooleanEntrySet in class Object2BooleanOpenHashMap<T>public ObjectSet<T> keySet()
keySet in interface java.util.Map<T,java.lang.Boolean>keySet in interface java.util.SortedMap<T,java.lang.Boolean>keySet in interface Object2BooleanMap<T>keySet in interface Object2BooleanSortedMap<T>keySet in class Object2BooleanOpenHashMap<T>public BooleanCollection values()
values in interface java.util.Map<T,java.lang.Boolean>values in interface java.util.SortedMap<T,java.lang.Boolean>values in interface Object2BooleanMap<T>values in interface Object2BooleanSortedMap<T>values in class Object2BooleanOpenHashMap<T>public void forEach(ObjectBooleanConsumer<T> action)
Object2BooleanMapforEach in interface Object2BooleanMap<T>forEach in class Object2BooleanOpenHashMap<T>action - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<T,java.lang.Boolean>clear in class Object2BooleanOpenHashMap<T>