public final class CalendarDateSeries<N extends Number> extends TreeMap<K,N> implements BasicSeries.NaturallySequenced<CalendarDate,N>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
BasicSeries.NaturallySequenced<K extends Comparable<? super K>,V extends Number>, BasicSeries.TimeSeriesBuilder<K extends Comparable<? super K>>
Access1D.Aggregatable<N extends Number>, Access1D.Collectable<N extends Number,R extends Mutate1D.Receiver<N>>, Access1D.Elements, Access1D.ElementView<N extends Number>, Access1D.IndexOf, Access1D.Sliceable<N extends Number>, Access1D.Visitable<N extends Number>
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,?>>, Structure1D.LongIndex, Structure1D.LoopCallback
CALENDAR, CALENDAR_DATE, DATE, INSTANT, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, OFFSET_DATE_TIME, ZONED_DATE_TIME
Constructor and Description |
---|
CalendarDateSeries() |
CalendarDateSeries(CalendarDateUnit resolution) |
Modifier and Type | Method and Description |
---|---|
PrimitiveSeries |
asPrimitive() |
I |
colour(ColourData colour) |
long |
count() |
double |
doubleValue(K key) |
double |
doubleValue(long index) |
N |
firstValue() |
N |
get(CalendarDate key) |
N |
get(long index) |
long |
getAverageStepSize() |
ColourData |
getColour() |
String |
getName() |
long[] |
getPrimitiveKeys() |
ExplicitTimeSeries |
getPrimitiveTimeSeries() |
CalendarDateUnit |
getResolution() |
CalendarDateSeries<N> |
headMap(CalendarDate newToKey) |
CalendarDateSeries<N> |
headMap(CalendarDate newToKey,
boolean newInclusive) |
N |
lastValue() |
Structure1D.IndexMapper<CalendarDate> |
mapper()
A natural sequence implies a bidirectional mapping between the keys and long indices.
|
I |
name(String name) |
CalendarDate |
nextKey() |
double |
put(CalendarDate key,
double value)
Will only work if values are types as Double.
|
N |
put(CalendarDate key,
N value)
Some implementations may specify an accumulator function to be used with subsequent put operation with
the same key.
|
N |
put(Calendar key,
N value) |
N |
put(Date key,
N value) |
double |
put(long index,
double value) |
N |
put(long index,
N value) |
void |
putAll(Map<? extends CalendarDate,? extends N> data) |
CalendarDateSeries<N> |
resample(CalendarDate.Resolution resolution) |
CalendarDateSeries<N> |
resample(CalendarDate firstKey,
CalendarDate lastKey,
CalendarDate.Resolution resolution) |
CalendarDate |
step(CalendarDate key) |
CalendarDateSeries<N> |
subMap(CalendarDate fromKey,
boolean inclusiveFromKey,
CalendarDate toKey,
boolean inclusiveToKey) |
CalendarDateSeries<N> |
subMap(CalendarDate fromKey,
CalendarDate keyLimit) |
CalendarDateSeries<N> |
tailMap(CalendarDate fromKey) |
CalendarDateSeries<N> |
tailMap(CalendarDate fromKey,
boolean inclusive) |
String |
toString() |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, remove, replace, replace, replaceAll, size, values
equals, hashCode, isEmpty
finalize, getClass, notify, notifyAll, wait, wait, wait
asPrimitive, complete, size
colour, coordinate, doubleValue, findEarliestFirstKey, findEarliestLastKey, findLatestFirstKey, findLatestLastKey, firstValue, getColour, getName, lastValue, make, make, make, make, name, putAll
comparator, entrySet, firstKey, keySet, lastKey, values
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, replaceAll
asCollectable1D, asPrimitive1D, axpy, byteValue, dot, elements, equals, floatValue, hashCode, intValue, longValue, nonzeros, shortValue, supplyTo, toRawCopy1D, toString, wrap, wrap, wrap
index, loopAll, loopMatching, loopRange, mapper
public CalendarDateSeries()
public CalendarDateSeries(CalendarDateUnit resolution)
public long count()
count
in interface Structure1D
public double doubleValue(long index)
doubleValue
in interface Access1D<N extends Number>
public N get(CalendarDate key)
get
in interface BasicSeries<CalendarDate,N extends Number>
public long getAverageStepSize()
public long[] getPrimitiveKeys()
public ExplicitTimeSeries getPrimitiveTimeSeries()
public CalendarDateUnit getResolution()
public CalendarDateSeries<N> headMap(CalendarDate newToKey)
headMap
in interface NavigableMap<CalendarDate,N extends Number>
headMap
in interface SortedMap<CalendarDate,N extends Number>
headMap
in class TreeMap<CalendarDate,N extends Number>
public CalendarDateSeries<N> headMap(CalendarDate newToKey, boolean newInclusive)
headMap
in interface NavigableMap<CalendarDate,N extends Number>
headMap
in class TreeMap<CalendarDate,N extends Number>
public Structure1D.IndexMapper<CalendarDate> mapper()
BasicSeries.NaturallySequenced
Structure1D.IndexMapper
specifies that mapping. Please note that
multiple instaces of the key type could correspnd to the same index, and not all long values are
valid indices. The conversions key -> index -> key may not return the original key.mapper
in interface BasicSeries.NaturallySequenced<CalendarDate,N extends Number>
public CalendarDate nextKey()
nextKey
in interface BasicSeries.NaturallySequenced<CalendarDate,N extends Number>
SortedMap.lastKey()
, key.public double put(CalendarDate key, double value)
put
in interface BasicSeries<CalendarDate,N extends Number>
BasicSeries.put(java.lang.Comparable, double)
public N put(CalendarDate key, N value)
BasicSeries
Map
.put
in interface Map<CalendarDate,N extends Number>
put
in interface BasicSeries<CalendarDate,N extends Number>
put
in class TreeMap<CalendarDate,N extends Number>
Map.put(java.lang.Object, java.lang.Object)
public double put(long index, double value)
put
in interface BasicSeries.NaturallySequenced<CalendarDate,N extends Number>
public N put(long index, N value)
put
in interface BasicSeries.NaturallySequenced<CalendarDate,N extends Number>
public void putAll(Map<? extends CalendarDate,? extends N> data)
putAll
in interface Map<CalendarDate,N extends Number>
putAll
in class TreeMap<CalendarDate,N extends Number>
public CalendarDateSeries<N> resample(CalendarDate firstKey, CalendarDate lastKey, CalendarDate.Resolution resolution)
public CalendarDateSeries<N> resample(CalendarDate.Resolution resolution)
public CalendarDate step(CalendarDate key)
step
in interface BasicSeries.NaturallySequenced<CalendarDate,N extends Number>
public CalendarDateSeries<N> subMap(CalendarDate fromKey, boolean inclusiveFromKey, CalendarDate toKey, boolean inclusiveToKey)
subMap
in interface NavigableMap<CalendarDate,N extends Number>
subMap
in class TreeMap<CalendarDate,N extends Number>
public CalendarDateSeries<N> subMap(CalendarDate fromKey, CalendarDate keyLimit)
subMap
in interface NavigableMap<CalendarDate,N extends Number>
subMap
in interface SortedMap<CalendarDate,N extends Number>
subMap
in class TreeMap<CalendarDate,N extends Number>
public CalendarDateSeries<N> tailMap(CalendarDate fromKey)
tailMap
in interface NavigableMap<CalendarDate,N extends Number>
tailMap
in interface SortedMap<CalendarDate,N extends Number>
tailMap
in class TreeMap<CalendarDate,N extends Number>
public CalendarDateSeries<N> tailMap(CalendarDate fromKey, boolean inclusive)
tailMap
in interface NavigableMap<CalendarDate,N extends Number>
tailMap
in class TreeMap<CalendarDate,N extends Number>
public String toString()
public PrimitiveSeries asPrimitive()
asPrimitive
in interface BasicSeries<K extends Comparable<? super K>,N extends Number>
public I colour(ColourData colour)
colour
in interface BasicSeries<K extends Comparable<? super K>,N extends Number>
public final double doubleValue(K key)
doubleValue
in interface BasicSeries<K extends Comparable<? super K>,N extends Number>
public N firstValue()
firstValue
in interface BasicSeries<K extends Comparable<? super K>,N extends Number>
public ColourData getColour()
getColour
in interface BasicSeries<K extends Comparable<? super K>,N extends Number>
public String getName()
getName
in interface BasicSeries<K extends Comparable<? super K>,N extends Number>
public N lastValue()
lastValue
in interface BasicSeries<K extends Comparable<? super K>,N extends Number>
public I name(String name)
name
in interface BasicSeries<K extends Comparable<? super K>,N extends Number>
Copyright © 2019 Optimatika. All rights reserved.