java.lang.Object
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 Object
implements BasicSeries.NaturallySequenced<CalendarDate,N>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.series.BasicSeries
BasicSeries.NaturallySequenced<K extends Comparable<? super K>,V extends Comparable<V>>, BasicSeries.TimeSeriesBuilder<K extends Comparable<? super K>> -
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionceilingEntry(CalendarDate key) ceilingKey(CalendarDate key) voidclear()final CalendarDateSeries<N> colour(ColourData colour) Comparator<? super CalendarDate> voidcomplete()Using the natural sequencing as the key incrementor.compute(CalendarDate key, BiFunction<? super CalendarDate, ? super N, ? extends N> remappingFunction) computeIfAbsent(CalendarDate key, Function<? super CalendarDate, ? extends N> mappingFunction) computeIfPresent(CalendarDate key, BiFunction<? super CalendarDate, ? super N, ? extends N> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanfirstKey()floorEntry(CalendarDate key) floorKey(CalendarDate key) voidforEach(BiConsumer<? super CalendarDate, ? super N> action) get(CalendarDate key) longgetName()getOrDefault(Object key, N defaultValue) long[]inthashCode()headMap(CalendarDate toKey) headMap(CalendarDate toKey, boolean inclusive) higherEntry(CalendarDate key) higherKey(CalendarDate key) booleanisEmpty()keySet()lastKey()lowerEntry(CalendarDate key) lowerKey(CalendarDate key) merge(CalendarDate key, N value, BiFunction<? super N, ? super N, ? extends N> remappingFunction) final CalendarDateSeries<N> nextKey()put(CalendarDate key, N value) voidputAll(Map<? extends CalendarDate, ? extends N> data) putIfAbsent(CalendarDate key, N value) booleanreplace(CalendarDate key, N value) booleanreplace(CalendarDate key, N oldValue, N newValue) voidreplaceAll(BiFunction<? super CalendarDate, ? super N, ? extends N> function) resample(UnaryOperator<CalendarDate> keyTranslator) resample(CalendarDateUnit resolution) voidsetColour(ColourData colour) voidintsize()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()values()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.series.BasicSeries
asPrimitive, colour, complete, doubleValue, firstValue, get, getColour, getName, lastValue, name, put, put, putAll, resample, setColour, setNameMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeMethods inherited from interface java.util.NavigableMap
reversedMethods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
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>>
-
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>>
-
headMap
- Specified by:
headMapin interfaceNavigableMap<CalendarDate,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>>
-
put
-
putAll
- Specified by:
putAllin interfaceMap<CalendarDate,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>>
-
subMap
- Specified by:
subMapin interfaceNavigableMap<CalendarDate,N extends Comparable<N>> - Specified by:
subMapin interfaceSortedMap<CalendarDate,N extends Comparable<N>>
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<CalendarDate,N extends Comparable<N>> - Specified by:
tailMapin interfaceSortedMap<CalendarDate,N extends Comparable<N>>
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<CalendarDate,N extends Comparable<N>>
-
toString
-
ceilingEntry
- Specified by:
ceilingEntryin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
ceilingKey
- Specified by:
ceilingKeyin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
clear
public void clear()- Specified by:
clearin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
colour
- Specified by:
colourin interfaceBasicSeries<K extends Comparable<? super K>,V extends Comparable<V>>
-
comparator
- Specified by:
comparatorin interfaceSortedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
compute
public N compute(CalendarDate key, BiFunction<? super CalendarDate, ? super N, ? extends N> remappingFunction) - Specified by:
computein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
computeIfAbsent
public N computeIfAbsent(CalendarDate key, Function<? super CalendarDate, ? extends N> mappingFunction) - Specified by:
computeIfAbsentin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
computeIfPresent
public N computeIfPresent(CalendarDate key, BiFunction<? super CalendarDate, ? super N, ? extends N> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
containsValue
- Specified by:
containsValuein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
descendingKeySet
- Specified by:
descendingKeySetin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
descendingMap
- Specified by:
descendingMapin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
entrySet
- Specified by:
entrySetin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>> - Specified by:
entrySetin interfaceSortedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
equals
- Specified by:
equalsin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>> - Overrides:
equalsin classObject
-
firstEntry
- Specified by:
firstEntryin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>> - Specified by:
firstEntryin interfaceSequencedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
firstKey
- Specified by:
firstKeyin interfaceSortedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
floorEntry
- Specified by:
floorEntryin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
floorKey
- Specified by:
floorKeyin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
forEach
- Specified by:
forEachin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
get
- Specified by:
getin interfaceBasicSeries<K extends Comparable<? super K>,V extends Comparable<V>> - Specified by:
getin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
getColour
- Specified by:
getColourin interfaceBasicSeries<K extends Comparable<? super K>,V extends Comparable<V>>
-
getName
- Specified by:
getNamein interfaceBasicSeries<K extends Comparable<? super K>,V extends Comparable<V>>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>> - Overrides:
hashCodein classObject
-
higherEntry
- Specified by:
higherEntryin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
higherKey
- Specified by:
higherKeyin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
keySet
- Specified by:
keySetin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>> - Specified by:
keySetin interfaceSortedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
lastEntry
- Specified by:
lastEntryin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>> - Specified by:
lastEntryin interfaceSequencedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
lastKey
- Specified by:
lastKeyin interfaceSortedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
lowerEntry
- Specified by:
lowerEntryin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
lowerKey
- Specified by:
lowerKeyin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
merge
public N merge(CalendarDate key, N value, BiFunction<? super N, ? super N, ? extends N> remappingFunction) - Specified by:
mergein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
name
- Specified by:
namein interfaceBasicSeries<K extends Comparable<? super K>,V extends Comparable<V>>
-
pollFirstEntry
- Specified by:
pollFirstEntryin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>> - Specified by:
pollFirstEntryin interfaceSequencedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
pollLastEntry
- Specified by:
pollLastEntryin interfaceNavigableMap<K extends Comparable<? super K>,V extends Comparable<V>> - Specified by:
pollLastEntryin interfaceSequencedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
remove
- Specified by:
removein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
remove
- Specified by:
removein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
replace
- Specified by:
replacein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
replace
- Specified by:
replacein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
setColour
- Specified by:
setColourin interfaceBasicSeries<K extends Comparable<? super K>,V extends Comparable<V>>
-
setName
- Specified by:
setNamein interfaceBasicSeries<K extends Comparable<? super K>,V extends Comparable<V>>
-
size
public int size()- Specified by:
sizein interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>>
-
values
- Specified by:
valuesin interfaceMap<K extends Comparable<? super K>,V extends Comparable<V>> - Specified by:
valuesin interfaceSortedMap<K extends Comparable<? super K>,V extends Comparable<V>>
-