public class Long2CharAVLTreeMap extends AbstractLong2CharMap implements Long2CharNavigableMap
AbstractLong2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2CharSortedMap.FastSortedSetLong2CharMap.FastEntrySet| Constructor and Description |
|---|
Long2CharAVLTreeMap()
Default Constructor
|
Long2CharAVLTreeMap(long[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Long2CharAVLTreeMap(long[] keys,
char[] values,
LongComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Long2CharAVLTreeMap(java.lang.Long[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2CharAVLTreeMap(java.lang.Long[] keys,
java.lang.Character[] values,
LongComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Long2CharAVLTreeMap(Long2CharMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2CharAVLTreeMap(Long2CharMap map,
LongComparator 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.
|
Long2CharAVLTreeMap(LongComparator comp)
Constructor that allows to define the sorter
|
Long2CharAVLTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Long2CharAVLTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> map,
LongComparator 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 |
|---|---|
char |
addTo(long key,
char value)
A Helper method to add a primitives together.
|
Long2CharMap.Entry |
ceilingEntry(long key)
A Type Specific ceilingEntry method to reduce boxing/unboxing.
|
long |
ceilingKey(long e)
A Type Specific ceilingKey method to reduce boxing/unboxing.
|
void |
clear() |
LongComparator |
comparator() |
char |
computeChar(long key,
LongCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(long key,
Long2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(long key,
LongCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(long key)
Type Specific method to reduce boxing/unboxing of values
|
LongNavigableSet |
descendingKeySet() |
Long2CharNavigableMap |
descendingMap() |
char |
firstCharValue()
A method to get the first Value of a Map.
|
Long2CharMap.Entry |
firstEntry() |
long |
firstLongKey()
A method to get the first Key of a Map.
|
Long2CharMap.Entry |
floorEntry(long key)
A Type Specific floorEntry method to reduce boxing/unboxing.
|
long |
floorKey(long e)
A Type Specific floorKey method to reduce boxing/unboxing.
|
char |
getAndMoveToFirst(long key)
A Specific get method that allows to move teh given key/value int the first index.
|
char |
getAndMoveToLast(long key)
A Specific get method that allows to move teh given key/value int the last index.
|
char |
getChar(long key)
A Type Specific get method to reduce boxing/unboxing
|
long |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
long |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
char |
getOrDefault(long key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Long2CharNavigableMap |
headMap(long toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Long2CharMap.Entry |
higherEntry(long key)
A Type Specific higherEntry method to reduce boxing/unboxing.
|
long |
higherKey(long e)
A Type Specific higherKey method to reduce boxing/unboxing.
|
LongSortedSet |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
Long2CharMap.Entry |
lastEntry() |
long |
lastLongKey()
A method to get the last Key of a Map.
|
ObjectSet<Long2CharMap.Entry> |
long2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Long2CharMap.Entry |
lowerEntry(long key)
A Type Specific lowerEntry method to reduce boxing/unboxing.
|
long |
lowerKey(long e)
A Type Specific lowerKey method to reduce boxing/unboxing.
|
void |
mergeAllChar(Long2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(long key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
moveToFirst(long key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(long key)
A specific move method to move a given key/value to the last index.
|
LongNavigableSet |
navigableKeySet() |
Long2CharMap.Entry |
pollFirstEntry() |
long |
pollFirstLongKey()
A method to get and remove the first Key of a Map.
|
Long2CharMap.Entry |
pollLastEntry() |
long |
pollLastLongKey()
A method to get and remove the last Key of a Map.
|
char |
put(long key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putAndMoveToFirst(long key,
char value)
A customized put method that allows you to insert into the first index.
|
char |
putAndMoveToLast(long key,
char value)
A customized put method that allows you to insert into the last index.
|
char |
putIfAbsent(long key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remLong(long key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remLongOrDefault(long key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(long key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
char |
replace(long key,
char value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(long key,
char oldValue,
char newValue)
A Type Specific replace method to replace an existing value
|
void |
setDefaultMaxValue(long value)
A Helper method to set the max value for SubMaps.
|
void |
setDefaultMinValue(long value)
A Helper method to set the min value for SubMaps.
|
int |
size() |
Long2CharNavigableMap |
subMap(long fromKey,
boolean fromInclusive,
long toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
Long2CharNavigableMap |
tailMap(long fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
CharCollection |
values() |
addToAll, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceChars, replaceChars, setDefaultReturnValuecontainsKey, containsValue, isEmpty, put, remove, toStringceilingEntry, ceilingKey, floorEntry, floorKey, headMap, headMap, headMap, higherEntry, higherKey, lowerEntry, lowerKey, subMap, subMap, subMap, tailMap, tailMap, tailMapfirstKey, lastKeyaddToAll, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Long2CharAVLTreeMap()
public Long2CharAVLTreeMap(LongComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Long2CharAVLTreeMap(java.lang.Long[] keys,
java.lang.Character[] 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 Long2CharAVLTreeMap(java.lang.Long[] keys,
java.lang.Character[] values,
LongComparator 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 Long2CharAVLTreeMap(long[] keys,
char[] 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 Long2CharAVLTreeMap(long[] keys,
char[] values,
LongComparator 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 Long2CharAVLTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Long2CharAVLTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> map,
LongComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic Long2CharAVLTreeMap(Long2CharMap map)
map - the values that should be present in the mappublic Long2CharAVLTreeMap(Long2CharMap map, LongComparator 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(long value)
Long2CharNavigableMapsetDefaultMaxValue in interface Long2CharNavigableMapvalue - the new max valuepublic long getDefaultMaxValue()
Long2CharNavigableMapgetDefaultMaxValue in interface Long2CharNavigableMappublic void setDefaultMinValue(long value)
Long2CharNavigableMapsetDefaultMinValue in interface Long2CharNavigableMapvalue - the new min valuepublic long getDefaultMinValue()
Long2CharNavigableMapgetDefaultMinValue in interface Long2CharNavigableMappublic char put(long key,
char value)
Long2CharMapput in interface Long2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(long key,
char value)
Long2CharMapputIfAbsent in interface Long2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(long key,
char value)
Long2CharMapaddTo in interface Long2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char putAndMoveToFirst(long key,
char value)
Long2CharSortedMapputAndMoveToFirst in interface Long2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(long key,
char value)
Long2CharSortedMapputAndMoveToLast in interface Long2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(long key)
Long2CharSortedMapmoveToFirst in interface Long2CharSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(long key)
Long2CharSortedMapmoveToLast in interface Long2CharSortedMapkey - that should be moved to the first lastpublic char getAndMoveToFirst(long key)
Long2CharSortedMapgetAndMoveToFirst in interface Long2CharSortedMapkey - that is searched forpublic char getAndMoveToLast(long key)
Long2CharSortedMapgetAndMoveToLast in interface Long2CharSortedMapkey - that is searched forpublic LongComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Long,java.lang.Character>comparator in interface Long2CharSortedMappublic boolean containsKey(long key)
Long2CharMapcontainsKey in interface Long2CharMapcontainsKey in class AbstractLong2CharMapkey - element that is searched forpublic char getChar(long key)
Long2CharMapgetChar in interface Long2CharFunctiongetChar in interface Long2CharMapkey - the key that is searched forpublic char getOrDefault(long key,
char defaultValue)
Long2CharMapgetOrDefault in interface Long2CharMapgetOrDefault in class AbstractLong2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic long firstLongKey()
Long2CharSortedMapfirstLongKey in interface Long2CharSortedMappublic long pollFirstLongKey()
Long2CharSortedMappollFirstLongKey in interface Long2CharSortedMappublic long lastLongKey()
Long2CharSortedMaplastLongKey in interface Long2CharSortedMappublic long pollLastLongKey()
Long2CharSortedMappollLastLongKey in interface Long2CharSortedMappublic Long2CharMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Long,java.lang.Character>firstEntry in interface Long2CharNavigableMappublic Long2CharMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Long,java.lang.Character>lastEntry in interface Long2CharNavigableMappublic Long2CharMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Long,java.lang.Character>pollFirstEntry in interface Long2CharNavigableMappublic Long2CharMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Long,java.lang.Character>pollLastEntry in interface Long2CharNavigableMappublic char firstCharValue()
Long2CharSortedMapfirstCharValue in interface Long2CharSortedMappublic char lastCharValue()
Long2CharSortedMaplastCharValue in interface Long2CharSortedMappublic char remLong(long key)
Long2CharMapremLong in interface Long2CharMapkey - the element that should be removedpublic char remLongOrDefault(long key,
char defaultValue)
Long2CharMapremLongOrDefault in interface Long2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(long key,
char value)
Long2CharMapremove in interface Long2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(long key,
char oldValue,
char newValue)
Long2CharMapreplace in interface Long2CharMapreplace in class AbstractLong2CharMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public char replace(long key,
char value)
Long2CharMapreplace in interface Long2CharMapreplace in class AbstractLong2CharMapkey - the element that should be searched forvalue - the value to replace with.public char computeChar(long key,
LongCharUnaryOperator mappingFunction)
Long2CharMapcomputeChar in interface Long2CharMapcomputeChar in class AbstractLong2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(long key,
Long2CharFunction mappingFunction)
Long2CharMapcomputeCharIfAbsent in interface Long2CharMapcomputeCharIfAbsent in class AbstractLong2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char computeCharIfPresent(long key,
LongCharUnaryOperator mappingFunction)
Long2CharMapcomputeCharIfPresent in interface Long2CharMapcomputeCharIfPresent in class AbstractLong2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char mergeChar(long key,
char value,
CharCharUnaryOperator mappingFunction)
Long2CharMapmergeChar in interface Long2CharMapmergeChar in class AbstractLong2CharMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllChar(Long2CharMap m, CharCharUnaryOperator mappingFunction)
Long2CharMapmergeAllChar in interface Long2CharMapmergeAllChar in class AbstractLong2CharMapm - 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.Long,java.lang.Character>size in class java.util.AbstractMap<java.lang.Long,java.lang.Character>public void clear()
clear in interface java.util.Map<java.lang.Long,java.lang.Character>clear in class java.util.AbstractMap<java.lang.Long,java.lang.Character>public LongSortedSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Long,java.lang.Character>keySet in interface Long2CharMapkeySet in interface Long2CharSortedMapkeySet in class AbstractLong2CharMappublic ObjectSet<Long2CharMap.Entry> long2CharEntrySet()
Long2CharMaplong2CharEntrySet in interface Long2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Character>values in interface java.util.SortedMap<java.lang.Long,java.lang.Character>values in interface Long2CharMapvalues in interface Long2CharSortedMapvalues in class AbstractLong2CharMappublic LongNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Long,java.lang.Character>navigableKeySet in interface Long2CharNavigableMappublic Long2CharNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Long,java.lang.Character>descendingMap in interface Long2CharNavigableMappublic LongNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Long,java.lang.Character>descendingKeySet in interface Long2CharNavigableMappublic Long2CharNavigableMap subMap(long fromKey, boolean fromInclusive, long toKey, boolean toInclusive)
Long2CharNavigableMapsubMap in interface Long2CharNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Long2CharNavigableMap headMap(long toKey, boolean inclusive)
Long2CharNavigableMapheadMap in interface Long2CharNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Long2CharNavigableMap tailMap(long fromKey, boolean inclusive)
Long2CharNavigableMaptailMap in interface Long2CharNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic long lowerKey(long e)
Long2CharNavigableMaplowerKey in interface Long2CharNavigableMape - that should be compared with.public long floorKey(long e)
Long2CharNavigableMapfloorKey in interface Long2CharNavigableMape - that should be compared with.public long higherKey(long e)
Long2CharNavigableMaphigherKey in interface Long2CharNavigableMape - that should be compared with.public long ceilingKey(long e)
Long2CharNavigableMapceilingKey in interface Long2CharNavigableMape - that should be compared with.public Long2CharMap.Entry lowerEntry(long key)
Long2CharNavigableMaplowerEntry in interface Long2CharNavigableMapkey - that should be compared with.public Long2CharMap.Entry higherEntry(long key)
Long2CharNavigableMaphigherEntry in interface Long2CharNavigableMapkey - that should be compared with.public Long2CharMap.Entry floorEntry(long key)
Long2CharNavigableMapfloorEntry in interface Long2CharNavigableMapkey - that should be compared with.public Long2CharMap.Entry ceilingEntry(long key)
Long2CharNavigableMapceilingEntry in interface Long2CharNavigableMapkey - that should be compared with.