Package org.ojalgo.type
Interface CalendarDate.Resolution
- All Superinterfaces:
Structure1D.IndexMapper<CalendarDate>
,TemporalAdjuster
- All Known Implementing Classes:
CalendarDateDuration
,CalendarDateUnit
- Enclosing class:
CalendarDate
public static interface CalendarDate.Resolution
extends TemporalAdjuster, Structure1D.IndexMapper<CalendarDate>
-
Method Summary
Modifier and TypeMethodDescriptiondefault long
addTo
(long epochMilli) Will increment the input epochMilli by the size/duration of this timeline resolution.default long
adjustInto
(long epochMilli) Maps a range of instances in time to a single instance.default CalendarDate
adjustInto
(CalendarDate temporal) long
The size/duration of a timeline resolution "unit".default long
default long
toIndex
(CalendarDate key) For each key (any instance of that type) there is a corresponding index value – 1 or more key instances will be mapped to each index value.default CalendarDate
toKey
(long index) In most cases it should be safe to assume that the input index value is valid (matching what would be created byStructure1D.IndexMapper.toIndex(Object)
).Methods inherited from interface org.ojalgo.structure.Structure1D.IndexMapper
next, previous
Methods inherited from interface java.time.temporal.TemporalAdjuster
adjustInto
-
Method Details
-
addTo
default long addTo(long epochMilli) Will increment the input epochMilli by the size/duration of this timeline resolution. -
adjustInto
-
adjustInto
default long adjustInto(long epochMilli) Maps a range of instances in time to a single instance. -
toDurationInMillis
long toDurationInMillis()The size/duration of a timeline resolution "unit". -
toDurationInNanos
default long toDurationInNanos() -
toIndex
Description copied from interface:Structure1D.IndexMapper
For each key (any instance of that type) there is a corresponding index value – 1 or more key instances will be mapped to each index value.- Specified by:
toIndex
in interfaceStructure1D.IndexMapper<CalendarDate>
-
toKey
Description copied from interface:Structure1D.IndexMapper
In most cases it should be safe to assume that the input index value is valid (matching what would be created byStructure1D.IndexMapper.toIndex(Object)
).- Specified by:
toKey
in interfaceStructure1D.IndexMapper<CalendarDate>
-