public class Char2BooleanRBTreeMap extends AbstractChar2BooleanMap implements Char2BooleanNavigableMap
AbstractChar2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2BooleanSortedMap.FastSortedSetChar2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Char2BooleanRBTreeMap()
Default Constructor
|
Char2BooleanRBTreeMap(char[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Char2BooleanRBTreeMap(char[] keys,
boolean[] values,
CharComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Char2BooleanRBTreeMap(Char2BooleanMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2BooleanRBTreeMap(Char2BooleanMap map,
CharComparator comp)
A Type Specific Helper function that has a custom sorter and allows to create a new Map with exactly the same values as the provided map.
|
Char2BooleanRBTreeMap(java.lang.Character[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2BooleanRBTreeMap(java.lang.Character[] keys,
java.lang.Boolean[] values,
CharComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Char2BooleanRBTreeMap(CharComparator comp)
Constructor that allows to define the sorter
|
Char2BooleanRBTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2BooleanRBTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Boolean> map,
CharComparator comp)
A Helper constructor that has a custom sorter and allows to create a Map with exactly the same values as the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
Char2BooleanMap.Entry |
ceilingEntry(char key)
A Type Specific ceilingEntry method to reduce boxing/unboxing.
|
char |
ceilingKey(char e)
A Type Specific ceilingKey method to reduce boxing/unboxing.
|
ObjectSet<Char2BooleanMap.Entry> |
char2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
CharComparator |
comparator() |
boolean |
computeBoolean(char key,
CharBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(char key,
Char2BooleanFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(char key,
CharBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(char key)
Type Specific method to reduce boxing/unboxing of values
|
CharNavigableSet |
descendingKeySet() |
Char2BooleanNavigableMap |
descendingMap() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
char |
firstCharKey()
A method to get the first Key of a Map.
|
Char2BooleanMap.Entry |
firstEntry() |
Char2BooleanMap.Entry |
floorEntry(char key)
A Type Specific floorEntry method to reduce boxing/unboxing.
|
char |
floorKey(char e)
A Type Specific floorKey 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.
|
boolean |
getBoolean(char key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
char |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
boolean |
getOrDefault(char key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Char2BooleanNavigableMap |
headMap(char toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Char2BooleanMap.Entry |
higherEntry(char key)
A Type Specific higherEntry method to reduce boxing/unboxing.
|
char |
higherKey(char e)
A Type Specific higherKey method to reduce boxing/unboxing.
|
CharSortedSet |
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.
|
Char2BooleanMap.Entry |
lastEntry() |
Char2BooleanMap.Entry |
lowerEntry(char key)
A Type Specific lowerEntry method to reduce boxing/unboxing.
|
char |
lowerKey(char e)
A Type Specific lowerKey method to reduce boxing/unboxing.
|
void |
mergeAllBoolean(Char2BooleanMap m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(char key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
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.
|
CharNavigableSet |
navigableKeySet() |
char |
pollFirstCharKey()
A method to get and remove the first Key of a Map.
|
Char2BooleanMap.Entry |
pollFirstEntry() |
char |
pollLastCharKey()
A method to get and remove the last Key of a Map.
|
Char2BooleanMap.Entry |
pollLastEntry() |
boolean |
put(char key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
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.
|
boolean |
putIfAbsent(char key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remCharOrDefault(char key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
replace(char key,
boolean value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(char key,
boolean oldValue,
boolean newValue)
A Type Specific replace method to replace an existing value
|
void |
setDefaultMaxValue(char value)
A Helper method to set the max value for SubMaps.
|
void |
setDefaultMinValue(char value)
A Helper method to set the min value for SubMaps.
|
int |
size() |
Char2BooleanNavigableMap |
subMap(char fromKey,
boolean fromInclusive,
char toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
Char2BooleanNavigableMap |
tailMap(char fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
BooleanCollection |
values() |
containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuecontainsKey, containsValue, isEmpty, put, remove, toStringceilingEntry, ceilingKey, floorEntry, floorKey, headMap, headMap, headMap, higherEntry, higherKey, lowerEntry, lowerKey, subMap, subMap, subMap, tailMap, tailMap, tailMapfirstKey, lastKeycompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic Char2BooleanRBTreeMap()
public Char2BooleanRBTreeMap(CharComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Char2BooleanRBTreeMap(java.lang.Character[] 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 Char2BooleanRBTreeMap(java.lang.Character[] keys,
java.lang.Boolean[] values,
CharComparator comp)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.comp - the function that decides how the tree is sorted, can be nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Char2BooleanRBTreeMap(char[] 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 Char2BooleanRBTreeMap(char[] keys,
boolean[] values,
CharComparator comp)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.comp - the function that decides how the tree is sorted, can be nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Char2BooleanRBTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Char2BooleanRBTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Boolean> map,
CharComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic Char2BooleanRBTreeMap(Char2BooleanMap map)
map - the values that should be present in the mappublic Char2BooleanRBTreeMap(Char2BooleanMap map, CharComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic void setDefaultMaxValue(char value)
Char2BooleanNavigableMapsetDefaultMaxValue in interface Char2BooleanNavigableMapvalue - the new max valuepublic char getDefaultMaxValue()
Char2BooleanNavigableMapgetDefaultMaxValue in interface Char2BooleanNavigableMappublic void setDefaultMinValue(char value)
Char2BooleanNavigableMapsetDefaultMinValue in interface Char2BooleanNavigableMapvalue - the new min valuepublic char getDefaultMinValue()
Char2BooleanNavigableMapgetDefaultMinValue in interface Char2BooleanNavigableMappublic boolean put(char key,
boolean value)
Char2BooleanMapput in interface Char2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(char key,
boolean value)
Char2BooleanMapputIfAbsent in interface Char2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public 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 boolean containsKey(char key)
Char2BooleanMapcontainsKey in interface Char2BooleanMapcontainsKey in class AbstractChar2BooleanMapkey - element that is searched forpublic boolean getBoolean(char key)
Char2BooleanMapgetBoolean in interface Char2BooleanFunctiongetBoolean in interface Char2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(char key,
boolean defaultValue)
Char2BooleanMapgetOrDefault in interface Char2BooleanMapgetOrDefault in class AbstractChar2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic char firstCharKey()
Char2BooleanSortedMapfirstCharKey in interface Char2BooleanSortedMappublic char pollFirstCharKey()
Char2BooleanSortedMappollFirstCharKey in interface Char2BooleanSortedMappublic char lastCharKey()
Char2BooleanSortedMaplastCharKey in interface Char2BooleanSortedMappublic char pollLastCharKey()
Char2BooleanSortedMappollLastCharKey in interface Char2BooleanSortedMappublic Char2BooleanMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Character,java.lang.Boolean>firstEntry in interface Char2BooleanNavigableMappublic Char2BooleanMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Character,java.lang.Boolean>lastEntry in interface Char2BooleanNavigableMappublic Char2BooleanMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Character,java.lang.Boolean>pollFirstEntry in interface Char2BooleanNavigableMappublic Char2BooleanMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Character,java.lang.Boolean>pollLastEntry in interface Char2BooleanNavigableMappublic boolean firstBooleanValue()
Char2BooleanSortedMapfirstBooleanValue in interface Char2BooleanSortedMappublic boolean lastBooleanValue()
Char2BooleanSortedMaplastBooleanValue in interface Char2BooleanSortedMappublic boolean remChar(char key)
Char2BooleanMapremChar in interface Char2BooleanMapkey - the element that should be removedpublic boolean remCharOrDefault(char key,
boolean defaultValue)
Char2BooleanMapremCharOrDefault in interface Char2BooleanMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(char key,
boolean value)
Char2BooleanMapremove in interface Char2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(char key,
boolean oldValue,
boolean newValue)
Char2BooleanMapreplace in interface Char2BooleanMapreplace in class AbstractChar2BooleanMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public boolean replace(char key,
boolean value)
Char2BooleanMapreplace in interface Char2BooleanMapreplace in class AbstractChar2BooleanMapkey - the element that should be searched forvalue - the value to replace with.public boolean computeBoolean(char key,
CharBooleanUnaryOperator mappingFunction)
Char2BooleanMapcomputeBoolean in interface Char2BooleanMapcomputeBoolean in class AbstractChar2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(char key,
Char2BooleanFunction mappingFunction)
Char2BooleanMapcomputeBooleanIfAbsent in interface Char2BooleanMapcomputeBooleanIfAbsent in class AbstractChar2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean computeBooleanIfPresent(char key,
CharBooleanUnaryOperator mappingFunction)
Char2BooleanMapcomputeBooleanIfPresent in interface Char2BooleanMapcomputeBooleanIfPresent in class AbstractChar2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean mergeBoolean(char key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
Char2BooleanMapmergeBoolean in interface Char2BooleanMapmergeBoolean in class AbstractChar2BooleanMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllBoolean(Char2BooleanMap m, BooleanBooleanUnaryOperator mappingFunction)
Char2BooleanMapmergeAllBoolean in interface Char2BooleanMapmergeAllBoolean in class AbstractChar2BooleanMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic int size()
size in interface java.util.Map<java.lang.Character,java.lang.Boolean>size in class java.util.AbstractMap<java.lang.Character,java.lang.Boolean>public void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Boolean>clear in class java.util.AbstractMap<java.lang.Character,java.lang.Boolean>public CharSortedSet 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 AbstractChar2BooleanMappublic ObjectSet<Char2BooleanMap.Entry> char2BooleanEntrySet()
Char2BooleanMapchar2BooleanEntrySet in interface Char2BooleanMappublic 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 AbstractChar2BooleanMappublic CharNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Character,java.lang.Boolean>navigableKeySet in interface Char2BooleanNavigableMappublic Char2BooleanNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Character,java.lang.Boolean>descendingMap in interface Char2BooleanNavigableMappublic CharNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Character,java.lang.Boolean>descendingKeySet in interface Char2BooleanNavigableMappublic Char2BooleanNavigableMap subMap(char fromKey, boolean fromInclusive, char toKey, boolean toInclusive)
Char2BooleanNavigableMapsubMap in interface Char2BooleanNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Char2BooleanNavigableMap headMap(char toKey, boolean inclusive)
Char2BooleanNavigableMapheadMap in interface Char2BooleanNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Char2BooleanNavigableMap tailMap(char fromKey, boolean inclusive)
Char2BooleanNavigableMaptailMap in interface Char2BooleanNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic char lowerKey(char e)
Char2BooleanNavigableMaplowerKey in interface Char2BooleanNavigableMape - that should be compared with.public char floorKey(char e)
Char2BooleanNavigableMapfloorKey in interface Char2BooleanNavigableMape - that should be compared with.public char higherKey(char e)
Char2BooleanNavigableMaphigherKey in interface Char2BooleanNavigableMape - that should be compared with.public char ceilingKey(char e)
Char2BooleanNavigableMapceilingKey in interface Char2BooleanNavigableMape - that should be compared with.public Char2BooleanMap.Entry lowerEntry(char key)
Char2BooleanNavigableMaplowerEntry in interface Char2BooleanNavigableMapkey - that should be compared with.public Char2BooleanMap.Entry higherEntry(char key)
Char2BooleanNavigableMaphigherEntry in interface Char2BooleanNavigableMapkey - that should be compared with.public Char2BooleanMap.Entry floorEntry(char key)
Char2BooleanNavigableMapfloorEntry in interface Char2BooleanNavigableMapkey - that should be compared with.public Char2BooleanMap.Entry ceilingEntry(char key)
Char2BooleanNavigableMapceilingEntry in interface Char2BooleanNavigableMapkey - that should be compared with.