public class Float2CharRBTreeMap extends AbstractFloat2CharMap implements Float2CharNavigableMap
AbstractFloat2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2CharSortedMap.FastSortedSetFloat2CharMap.BuilderCache, Float2CharMap.Entry, Float2CharMap.FastEntrySet, Float2CharMap.MapBuilder| Constructor and Description |
|---|
Float2CharRBTreeMap()
Default Constructor
|
Float2CharRBTreeMap(float[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2CharRBTreeMap(float[] keys,
char[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Float2CharRBTreeMap(java.lang.Float[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2CharRBTreeMap(java.lang.Float[] keys,
java.lang.Character[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Float2CharRBTreeMap(Float2CharMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2CharRBTreeMap(Float2CharMap map,
FloatComparator 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.
|
Float2CharRBTreeMap(FloatComparator comp)
Constructor that allows to define the sorter
|
Float2CharRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2CharRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Character> map,
FloatComparator 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(float key,
char value)
A Helper method to add a primitives together.
|
Float2CharMap.Entry |
ceilingEntry(float key)
A Type Specific ceilingEntry method to reduce boxing/unboxing.
|
float |
ceilingKey(float e)
A Type Specific ceilingKey method to reduce boxing/unboxing.
|
void |
clear() |
FloatComparator |
comparator() |
char |
computeChar(float key,
FloatCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(float key,
Float2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(float key,
FloatCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
Float2CharRBTreeMap |
copy()
A Function that does a shallow clone of the Map itself.
|
FloatNavigableSet |
descendingKeySet() |
Float2CharNavigableMap |
descendingMap() |
char |
firstCharValue()
A method to get the first Value of a Map.
|
Float2CharMap.Entry |
firstEntry() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
ObjectSet<Float2CharMap.Entry> |
float2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Float2CharMap.Entry |
floorEntry(float key)
A Type Specific floorEntry method to reduce boxing/unboxing.
|
float |
floorKey(float e)
A Type Specific floorKey method to reduce boxing/unboxing.
|
void |
forEach(FloatCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
get(float key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
float |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
char |
getOrDefault(float key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Float2CharNavigableMap |
headMap(float toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Float2CharMap.Entry |
higherEntry(float key)
A Type Specific higherEntry method to reduce boxing/unboxing.
|
float |
higherKey(float e)
A Type Specific higherKey method to reduce boxing/unboxing.
|
FloatNavigableSet |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
Float2CharMap.Entry |
lastEntry() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
Float2CharMap.Entry |
lowerEntry(float key)
A Type Specific lowerEntry method to reduce boxing/unboxing.
|
float |
lowerKey(float e)
A Type Specific lowerKey method to reduce boxing/unboxing.
|
void |
mergeAllChar(Float2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(float key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
FloatNavigableSet |
navigableKeySet() |
Float2CharMap.Entry |
pollFirstEntry() |
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
Float2CharMap.Entry |
pollLastEntry() |
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
char |
put(float key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(float key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
char |
removeOrDefault(float key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
char |
replace(float key,
char value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
char oldValue,
char newValue)
A Type Specific replace method to replace an existing value
|
void |
setDefaultMaxValue(float value)
A Helper method to set the max value for SubMaps.
|
void |
setDefaultMinValue(float value)
A Helper method to set the min value for SubMaps.
|
int |
size() |
char |
subFrom(float key,
char value)
A Helper method to subtract from primitive from each other.
|
Float2CharNavigableMap |
subMap(float fromKey,
boolean fromInclusive,
float toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
char |
supplyCharIfAbsent(float key,
CharSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
Float2CharNavigableMap |
tailMap(float fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
CharCollection |
values() |
addToAll, containsValue, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replaceChars, replaceChars, setDefaultReturnValueceilingEntry, ceilingKey, floorEntry, floorKey, headMap, headMap, headMap, higherEntry, higherKey, lowerEntry, lowerKey, subMap, subMap, subMap, synchronize, synchronize, tailMap, tailMap, tailMap, unmodifiablefirstKey, lastKeyaddToAll, applyAsChar, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Float2CharRBTreeMap()
public Float2CharRBTreeMap(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Float2CharRBTreeMap(java.lang.Float[] 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 Float2CharRBTreeMap(java.lang.Float[] keys,
java.lang.Character[] values,
FloatComparator 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 Float2CharRBTreeMap(float[] 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 Float2CharRBTreeMap(float[] keys,
char[] values,
FloatComparator 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 Float2CharRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Float2CharRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Character> map,
FloatComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic Float2CharRBTreeMap(Float2CharMap map)
map - the values that should be present in the mappublic Float2CharRBTreeMap(Float2CharMap map, FloatComparator 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(float value)
Float2CharNavigableMapsetDefaultMaxValue in interface Float2CharNavigableMapvalue - the new max valuepublic float getDefaultMaxValue()
Float2CharNavigableMapgetDefaultMaxValue in interface Float2CharNavigableMappublic void setDefaultMinValue(float value)
Float2CharNavigableMapsetDefaultMinValue in interface Float2CharNavigableMapvalue - the new min valuepublic float getDefaultMinValue()
Float2CharNavigableMapgetDefaultMinValue in interface Float2CharNavigableMappublic char put(float key,
char value)
Float2CharMapput in interface Float2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(float key,
char value)
Float2CharMapputIfAbsent in interface Float2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(float key,
char value)
Float2CharMapaddTo in interface Float2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char subFrom(float key,
char value)
Float2CharMapFloat2CharMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Float2CharMapkey - that should be subtract fromvalue - that should be subtractpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Character>comparator in interface Float2CharSortedMappublic boolean containsKey(float key)
Float2CharMapcontainsKey in interface Float2CharMapcontainsKey in class AbstractFloat2CharMapkey - element that is searched forpublic char get(float key)
Float2CharMapget in interface Float2CharMapkey - the key that is searched forpublic char getOrDefault(float key,
char defaultValue)
Float2CharMapgetOrDefault in interface Float2CharMapgetOrDefault in class AbstractFloat2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic float firstFloatKey()
Float2CharSortedMapfirstFloatKey in interface Float2CharSortedMappublic float pollFirstFloatKey()
Float2CharSortedMappollFirstFloatKey in interface Float2CharSortedMappublic float lastFloatKey()
Float2CharSortedMaplastFloatKey in interface Float2CharSortedMappublic float pollLastFloatKey()
Float2CharSortedMappollLastFloatKey in interface Float2CharSortedMappublic Float2CharMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Character>firstEntry in interface Float2CharNavigableMappublic Float2CharMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Character>lastEntry in interface Float2CharNavigableMappublic Float2CharMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Character>pollFirstEntry in interface Float2CharNavigableMappublic Float2CharMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Character>pollLastEntry in interface Float2CharNavigableMappublic char firstCharValue()
Float2CharSortedMapfirstCharValue in interface Float2CharSortedMappublic char lastCharValue()
Float2CharSortedMaplastCharValue in interface Float2CharSortedMappublic char remove(float key)
Float2CharMapremove in interface Float2CharMapkey - the element that should be removedpublic char removeOrDefault(float key,
char defaultValue)
Float2CharMapremoveOrDefault in interface Float2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(float key,
char value)
Float2CharMapremove in interface Float2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
char oldValue,
char newValue)
Float2CharMapreplace in interface Float2CharMapreplace in class AbstractFloat2CharMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public char replace(float key,
char value)
Float2CharMapreplace in interface Float2CharMapreplace in class AbstractFloat2CharMapkey - the element that should be searched forvalue - the value to replace with.public char computeChar(float key,
FloatCharUnaryOperator mappingFunction)
Float2CharMapcomputeChar in interface Float2CharMapcomputeChar in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(float key,
Float2CharFunction mappingFunction)
Float2CharMapcomputeCharIfAbsent in interface Float2CharMapcomputeCharIfAbsent in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char supplyCharIfAbsent(float key,
CharSupplier valueProvider)
Float2CharMapsupplyCharIfAbsent in interface Float2CharMapsupplyCharIfAbsent in class AbstractFloat2CharMapkey - the key that should be computedvalueProvider - the value if not presentpublic char computeCharIfPresent(float key,
FloatCharUnaryOperator mappingFunction)
Float2CharMapcomputeCharIfPresent in interface Float2CharMapcomputeCharIfPresent in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char mergeChar(float key,
char value,
CharCharUnaryOperator mappingFunction)
Float2CharMapmergeChar in interface Float2CharMapmergeChar in class AbstractFloat2CharMapkey - 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(Float2CharMap m, CharCharUnaryOperator mappingFunction)
Float2CharMapmergeAllChar in interface Float2CharMapmergeAllChar in class AbstractFloat2CharMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic void forEach(FloatCharConsumer action)
Float2CharMapforEach in interface Float2CharMapforEach in class AbstractFloat2CharMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Character>size in class java.util.AbstractMap<java.lang.Float,java.lang.Character>public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Character>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Character>public Float2CharRBTreeMap copy()
Float2CharMapcopy in interface Float2CharMapcopy in interface Float2CharNavigableMapcopy in interface Float2CharSortedMapcopy in class AbstractFloat2CharMappublic FloatNavigableSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Character>keySet in interface Float2CharMapkeySet in interface Float2CharNavigableMapkeySet in interface Float2CharSortedMapkeySet in class AbstractFloat2CharMappublic ObjectSet<Float2CharMap.Entry> float2CharEntrySet()
Float2CharMapfloat2CharEntrySet in interface Float2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Character>values in interface java.util.SortedMap<java.lang.Float,java.lang.Character>values in interface Float2CharMapvalues in interface Float2CharSortedMapvalues in class AbstractFloat2CharMappublic FloatNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Character>navigableKeySet in interface Float2CharNavigableMappublic Float2CharNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Float,java.lang.Character>descendingMap in interface Float2CharNavigableMappublic FloatNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Character>descendingKeySet in interface Float2CharNavigableMappublic Float2CharNavigableMap subMap(float fromKey, boolean fromInclusive, float toKey, boolean toInclusive)
Float2CharNavigableMapsubMap in interface Float2CharNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Float2CharNavigableMap headMap(float toKey, boolean inclusive)
Float2CharNavigableMapheadMap in interface Float2CharNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Float2CharNavigableMap tailMap(float fromKey, boolean inclusive)
Float2CharNavigableMaptailMap in interface Float2CharNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic float lowerKey(float e)
Float2CharNavigableMaplowerKey in interface Float2CharNavigableMape - that should be compared with.public float floorKey(float e)
Float2CharNavigableMapfloorKey in interface Float2CharNavigableMape - that should be compared with.public float higherKey(float e)
Float2CharNavigableMaphigherKey in interface Float2CharNavigableMape - that should be compared with.public float ceilingKey(float e)
Float2CharNavigableMapceilingKey in interface Float2CharNavigableMape - that should be compared with.public Float2CharMap.Entry lowerEntry(float key)
Float2CharNavigableMaplowerEntry in interface Float2CharNavigableMapkey - that should be compared with.public Float2CharMap.Entry higherEntry(float key)
Float2CharNavigableMaphigherEntry in interface Float2CharNavigableMapkey - that should be compared with.public Float2CharMap.Entry floorEntry(float key)
Float2CharNavigableMapfloorEntry in interface Float2CharNavigableMapkey - that should be compared with.public Float2CharMap.Entry ceilingEntry(float key)
Float2CharNavigableMapceilingEntry in interface Float2CharNavigableMapkey - that should be compared with.