Class CalendarDateSeries<N extends Comparable<N>>
java.lang.Object
org.ojalgo.series.TreeSeries<CalendarDate, N, CalendarDateSeries<N>>
org.ojalgo.series.CalendarDateSeries<N>
- All Implemented Interfaces:
Map<CalendarDate, N>, NavigableMap<CalendarDate, N>, SequencedMap<CalendarDate, N>, SortedMap<CalendarDate, N>, BasicSeries<CalendarDate, N>, BasicSeries.NaturallySequenced<CalendarDate, N>
public final class CalendarDateSeries<N extends Comparable<N>>
extends TreeSeries<CalendarDate, N, CalendarDateSeries<N>>
implements BasicSeries.NaturallySequenced<CalendarDate, N>
-
Nested Class Summary
Nested classes/interfaces inherited from interface BasicSeries
BasicSeries.NaturallySequenced<K,V>, BasicSeries.TimeSeriesBuilder<K> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NavigableMap<CalendarDate, N> private final CalendarDateUnitFields inherited from interface BasicSeries
CALENDAR, CALENDAR_DATE, DATE, INSTANT, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, OFFSET_DATE_TIME, ZONED_DATE_TIME -
Constructor Summary
ConstructorsConstructorDescriptionCalendarDateSeries(NavigableMap<CalendarDate, N> delegate, CalendarDateUnit resolution) CalendarDateSeries(CalendarDateUnit resolution) -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Using the natural sequencing as the key incrementor.get(CalendarDate key) longlong[]headMap(CalendarDate toKey) headMap(CalendarDate toKey, boolean inclusive) nextKey()put(CalendarDate key, N value) voidputAll(Map<? extends CalendarDate, ? extends N> data) resample(UnaryOperator<CalendarDate> keyTranslator) resample(CalendarDateUnit resolution) private BasicSeries<CalendarDate, N> resample(CalendarDateUnit resolution, Function<CalendarDate, CalendarDate> keyMapper) step(CalendarDate key) Will step (increment) the key given to the next in the natural sequence.subMap(CalendarDate fromKey, boolean inclusiveFromKey, CalendarDate toKey, boolean inclusiveToKey) subMap(CalendarDate fromKey, CalendarDate toKey) tailMap(CalendarDate fromKey) tailMap(CalendarDate fromKey, boolean inclusive) toString()Methods inherited from class TreeSeries
appendLastPartToString, ceilingEntry, ceilingKey, clear, colour, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, equals, firstEntry, firstKey, floorEntry, floorKey, forEach, get, getColour, getName, getOrDefault, hashCode, higherEntry, higherKey, isEmpty, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, name, navigableKeySet, pollFirstEntry, pollLastEntry, putIfAbsent, remove, remove, replace, replace, replaceAll, setColour, setName, size, toStringFirstPart, valuesMethods inherited from interface BasicSeries
asPrimitive, colour, complete, doubleValue, firstValue, get, getColour, getName, lastValue, name, put, put, putAll, resample, setColour, setNameMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeMethods inherited from interface NavigableMap
reversedMethods inherited from interface SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Field Details
-
myDelegate
-
myResolution
-
-
Constructor Details
-
CalendarDateSeries
public CalendarDateSeries() -
CalendarDateSeries
-
-
Method Details
-
complete
public void complete()Description copied from interface:BasicSeries.NaturallySequencedUsing the natural sequencing as the key incrementor.- Specified by:
completein interfaceBasicSeries.NaturallySequenced<CalendarDate, N extends Comparable<N>>- See Also:
-
get
- Specified by:
getin interfaceBasicSeries<CalendarDate, N extends Comparable<N>>- Overrides:
getin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
getAverageStepSize
public long getAverageStepSize() -
getPrimitiveKeys
public long[] getPrimitiveKeys() -
getPrimitiveTimeSeries
-
getResolution
-
headMap
- Specified by:
headMapin interfaceNavigableMap<CalendarDate, N extends Comparable<N>>- Specified by:
headMapin interfaceSortedMap<CalendarDate, N extends Comparable<N>>- Overrides:
headMapin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
headMap
- Specified by:
headMapin interfaceNavigableMap<CalendarDate, N extends Comparable<N>>- Overrides:
headMapin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
nextKey
- Specified by:
nextKeyin interfaceBasicSeries.NaturallySequenced<CalendarDate, N extends Comparable<N>>- Returns:
- The next, after the
SortedMap.lastKey(), key.
-
put
-
put
- Specified by:
putin interfaceMap<CalendarDate, N extends Comparable<N>>- Overrides:
putin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
put
-
putAll
- Specified by:
putAllin interfaceMap<CalendarDate, N extends Comparable<N>>- Overrides:
putAllin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
resample
-
resample
- Specified by:
resamplein interfaceBasicSeries<CalendarDate, N extends Comparable<N>>
-
step
Description copied from interface:BasicSeries.NaturallySequencedWill step (increment) the key given to the next in the natural sequence.- Specified by:
stepin interfaceBasicSeries.NaturallySequenced<CalendarDate, N extends Comparable<N>>
-
subMap
public CalendarDateSeries<N> subMap(CalendarDate fromKey, boolean inclusiveFromKey, CalendarDate toKey, boolean inclusiveToKey) - Specified by:
subMapin interfaceNavigableMap<CalendarDate, N extends Comparable<N>>- Overrides:
subMapin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
subMap
- Specified by:
subMapin interfaceNavigableMap<CalendarDate, N extends Comparable<N>>- Specified by:
subMapin interfaceSortedMap<CalendarDate, N extends Comparable<N>>- Overrides:
subMapin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<CalendarDate, N extends Comparable<N>>- Specified by:
tailMapin interfaceSortedMap<CalendarDate, N extends Comparable<N>>- Overrides:
tailMapin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<CalendarDate, N extends Comparable<N>>- Overrides:
tailMapin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
toString
- Overrides:
toStringin classTreeSeries<CalendarDate, N extends Comparable<N>, CalendarDateSeries<N extends Comparable<N>>>
-
resample
private BasicSeries<CalendarDate, N> resample(CalendarDateUnit resolution, Function<CalendarDate, CalendarDate> keyMapper)
-