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 longaddTo(long epochMilli) Will increment the input epochMilli by the size/duration of this timeline resolution.default longadjustInto(long epochMilli) Maps a range of instances in time to a single instance.default CalendarDateadjustInto(CalendarDate temporal) longThe size/duration of a timeline resolution "unit".default longdefault longtoIndex(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 CalendarDatetoKey(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 Structure1D.IndexMapper
next, previousMethods inherited from interface 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.IndexMapperFor 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:
toIndexin interfaceStructure1D.IndexMapper<CalendarDate>
-
toKey
Description copied from interface:Structure1D.IndexMapperIn 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:
toKeyin interfaceStructure1D.IndexMapper<CalendarDate>
-