public class Char2BooleanLinkedOpenCustomHashMap extends Char2BooleanOpenCustomHashMap implements Char2BooleanSortedMap
AbstractChar2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2BooleanSortedMap.FastSortedSetChar2BooleanMap.Entry, Char2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Char2BooleanLinkedOpenCustomHashMap(char[] keys,
boolean[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2BooleanLinkedOpenCustomHashMap(char[] keys,
boolean[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2BooleanLinkedOpenCustomHashMap(Char2BooleanMap map,
CharStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2BooleanLinkedOpenCustomHashMap(Char2BooleanMap map,
float loadFactor,
CharStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2BooleanLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Boolean[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2BooleanLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Boolean[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2BooleanLinkedOpenCustomHashMap(CharStrategy strategy)
Default Constructor
|
Char2BooleanLinkedOpenCustomHashMap(int minCapacity,
CharStrategy strategy)
Constructor that defines the minimum capacity
|
Char2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
CharStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Char2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Boolean> map,
CharStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Boolean> map,
float loadFactor,
CharStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectSet<Char2BooleanMap.Entry> |
char2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
CharComparator |
comparator() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
char |
firstCharKey()
A method to get the first Key of a Map.
|
void |
forEach(CharBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(char key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(char key)
A Specific get method that allows to move teh given key/value int the last index.
|
Char2BooleanSortedMap |
headMap(char toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
CharSet |
keySet() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
char |
lastCharKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(char key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(char key)
A specific move method to move a given key/value to the last index.
|
char |
pollFirstCharKey()
A method to get and remove the first Key of a Map.
|
char |
pollLastCharKey()
A method to get and remove the last Key of a Map.
|
boolean |
putAndMoveToFirst(char key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(char key,
boolean value)
A customized put method that allows you to insert into the last index.
|
Char2BooleanSortedMap |
subMap(char fromKey,
char toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Char2BooleanSortedMap |
tailMap(char fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsKey, containsValue, containsValue, get, getBoolean, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, sizeentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapcompute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getBoolean, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic Char2BooleanLinkedOpenCustomHashMap(CharStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2BooleanLinkedOpenCustomHashMap(int minCapacity,
CharStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativepublic Char2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
CharStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Char2BooleanLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Boolean[] values,
CharStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Char2BooleanLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Boolean[] values,
float loadFactor,
CharStrategy strategy)
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 resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.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 Char2BooleanLinkedOpenCustomHashMap(char[] keys,
boolean[] values,
CharStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Char2BooleanLinkedOpenCustomHashMap(char[] keys,
boolean[] values,
float loadFactor,
CharStrategy strategy)
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 resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.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 Char2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Boolean> map,
CharStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Boolean> map,
float loadFactor,
CharStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Char2BooleanLinkedOpenCustomHashMap(Char2BooleanMap map, CharStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2BooleanLinkedOpenCustomHashMap(Char2BooleanMap map, float loadFactor, CharStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public boolean putAndMoveToFirst(char key,
boolean value)
Char2BooleanSortedMapputAndMoveToFirst in interface Char2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(char key,
boolean value)
Char2BooleanSortedMapputAndMoveToLast in interface Char2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(char key)
Char2BooleanSortedMapmoveToFirst in interface Char2BooleanSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(char key)
Char2BooleanSortedMapmoveToLast in interface Char2BooleanSortedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(char key)
Char2BooleanSortedMapgetAndMoveToFirst in interface Char2BooleanSortedMapkey - that is searched forpublic boolean getAndMoveToLast(char key)
Char2BooleanSortedMapgetAndMoveToLast in interface Char2BooleanSortedMapkey - that is searched forpublic CharComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Character,java.lang.Boolean>comparator in interface Char2BooleanSortedMappublic Char2BooleanSortedMap subMap(char fromKey, char toKey)
Char2BooleanSortedMapsubMap in interface Char2BooleanSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Char2BooleanSortedMap headMap(char toKey)
Char2BooleanSortedMapheadMap in interface Char2BooleanSortedMaptoKey - where the headMap should endpublic Char2BooleanSortedMap tailMap(char fromKey)
Char2BooleanSortedMaptailMap in interface Char2BooleanSortedMapfromKey - where the TailMap should startpublic char firstCharKey()
Char2BooleanSortedMapfirstCharKey in interface Char2BooleanSortedMappublic char pollFirstCharKey()
Char2BooleanSortedMappollFirstCharKey in interface Char2BooleanSortedMappublic char lastCharKey()
Char2BooleanSortedMaplastCharKey in interface Char2BooleanSortedMappublic char pollLastCharKey()
Char2BooleanSortedMappollLastCharKey in interface Char2BooleanSortedMappublic boolean firstBooleanValue()
Char2BooleanSortedMapfirstBooleanValue in interface Char2BooleanSortedMappublic boolean lastBooleanValue()
Char2BooleanSortedMaplastBooleanValue in interface Char2BooleanSortedMappublic ObjectSet<Char2BooleanMap.Entry> char2BooleanEntrySet()
Char2BooleanMapchar2BooleanEntrySet in interface Char2BooleanMapchar2BooleanEntrySet in class Char2BooleanOpenCustomHashMappublic CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Boolean>keySet in interface java.util.SortedMap<java.lang.Character,java.lang.Boolean>keySet in interface Char2BooleanMapkeySet in interface Char2BooleanSortedMapkeySet in class Char2BooleanOpenCustomHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Boolean>values in interface java.util.SortedMap<java.lang.Character,java.lang.Boolean>values in interface Char2BooleanMapvalues in interface Char2BooleanSortedMapvalues in class Char2BooleanOpenCustomHashMappublic void forEach(CharBooleanConsumer action)
Char2BooleanMapforEach in interface Char2BooleanMapforEach in class Char2BooleanOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Boolean>clear in class Char2BooleanOpenCustomHashMap