Package org.ojalgo.series
Class TreeSeries<K extends java.lang.Comparable<? super K>,V extends java.lang.Comparable<V>,I extends TreeSeries<K,V,I>>
- java.lang.Object
-
- org.ojalgo.series.TreeSeries<K,V,I>
-
- All Implemented Interfaces:
java.util.Map<K,V>
,java.util.NavigableMap<K,V>
,java.util.SortedMap<K,V>
,BasicSeries<K,V>
- Direct Known Subclasses:
CalendarDateSeries
,NumberSeries
,SimpleSeries
abstract class TreeSeries<K extends java.lang.Comparable<? super K>,V extends java.lang.Comparable<V>,I extends TreeSeries<K,V,I>> extends java.lang.Object implements java.util.NavigableMap<K,V>, BasicSeries<K,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.series.BasicSeries
BasicSeries.NaturallySequenced<K extends java.lang.Comparable<? super K>,V extends java.lang.Comparable<V>>, BasicSeries.TimeSeriesBuilder<K extends java.lang.Comparable<? super K>>
-
-
Field Summary
Fields Modifier and Type Field Description private ColourData
myColour
private java.util.NavigableMap<K,V>
myDelegate
private java.lang.String
myName
-
Fields inherited from interface org.ojalgo.series.BasicSeries
CALENDAR, CALENDAR_DATE, DATE, INSTANT, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, OFFSET_DATE_TIME, ZONED_DATE_TIME
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TreeSeries(java.util.NavigableMap<K,V> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
appendLastPartToString(java.lang.StringBuilder builder)
java.util.Map.Entry<K,V>
ceilingEntry(K key)
K
ceilingKey(K key)
void
clear()
I
colour(ColourData colour)
java.util.Comparator<? super K>
comparator()
V
compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
V
computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
V
computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.NavigableSet<K>
descendingKeySet()
java.util.NavigableMap<K,V>
descendingMap()
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
boolean
equals(java.lang.Object o)
java.util.Map.Entry<K,V>
firstEntry()
K
firstKey()
java.util.Map.Entry<K,V>
floorEntry(K key)
K
floorKey(K key)
void
forEach(java.util.function.BiConsumer<? super K,? super V> action)
V
get(java.lang.Object key)
V
get(K key)
ColourData
getColour()
java.lang.String
getName()
V
getOrDefault(java.lang.Object key, V defaultValue)
int
hashCode()
java.util.SortedMap<K,V>
headMap(K toKey)
java.util.NavigableMap<K,V>
headMap(K toKey, boolean inclusive)
java.util.Map.Entry<K,V>
higherEntry(K key)
K
higherKey(K key)
boolean
isEmpty()
java.util.Set<K>
keySet()
java.util.Map.Entry<K,V>
lastEntry()
K
lastKey()
java.util.Map.Entry<K,V>
lowerEntry(K key)
K
lowerKey(K key)
V
merge(K key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction)
I
name(java.lang.String name)
java.util.NavigableSet<K>
navigableKeySet()
java.util.Map.Entry<K,V>
pollFirstEntry()
java.util.Map.Entry<K,V>
pollLastEntry()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> m)
V
putIfAbsent(K key, V value)
V
remove(java.lang.Object key)
boolean
remove(java.lang.Object key, java.lang.Object value)
V
replace(K key, V value)
boolean
replace(K key, V oldValue, V newValue)
void
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
void
setColour(ColourData colour)
void
setName(java.lang.String name)
int
size()
java.util.NavigableMap<K,V>
subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
java.util.SortedMap<K,V>
subMap(K fromKey, K toKey)
java.util.SortedMap<K,V>
tailMap(K fromKey)
java.util.NavigableMap<K,V>
tailMap(K fromKey, boolean inclusive)
java.lang.String
toString()
(package private) java.lang.StringBuilder
toStringFirstPart()
java.util.Collection<V>
values()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.series.BasicSeries
asPrimitive, complete, doubleValue, firstValue, lastValue, put, put, putAll, resample, resample
-
-
-
-
Field Detail
-
myColour
private ColourData myColour
-
myDelegate
private final java.util.NavigableMap<K extends java.lang.Comparable<? super K>,V extends java.lang.Comparable<V>> myDelegate
-
myName
private java.lang.String myName
-
-
Method Detail
-
clear
public void clear()
-
colour
public final I colour(ColourData colour)
-
comparator
public java.util.Comparator<? super K> comparator()
-
compute
public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
-
computeIfAbsent
public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
-
computeIfPresent
public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
descendingKeySet
public java.util.NavigableSet<K> descendingKeySet()
-
equals
public boolean equals(java.lang.Object o)
-
firstKey
public K firstKey()
-
get
public V get(java.lang.Object key)
-
getColour
public ColourData getColour()
-
getName
public java.lang.String getName()
-
hashCode
public int hashCode()
-
isEmpty
public boolean isEmpty()
-
keySet
public java.util.Set<K> keySet()
-
lastKey
public K lastKey()
-
merge
public V merge(K key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction)
-
name
public final I name(java.lang.String name)
-
navigableKeySet
public java.util.NavigableSet<K> navigableKeySet()
-
remove
public V remove(java.lang.Object key)
-
remove
public boolean remove(java.lang.Object key, java.lang.Object value)
-
replaceAll
public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
-
setColour
public void setColour(ColourData colour)
-
setName
public void setName(java.lang.String name)
-
size
public int size()
-
subMap
public java.util.NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
values
public java.util.Collection<V> values()
-
appendLastPartToString
final void appendLastPartToString(java.lang.StringBuilder builder)
-
toStringFirstPart
final java.lang.StringBuilder toStringFirstPart()
-
-