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>
Extends TemporalAdjuster but also loosely corresponds to a TemporalUnit and/or TemporalAmount.
  • Method Details

    • addTo

      default long addTo(long epochMilli)
      Will increment the input epochMilli by the size/duration of this timeline resolution.
    • adjustInto

      default CalendarDate adjustInto(CalendarDate temporal)
    • 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

      default long toIndex(CalendarDate key)
      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 interface Structure1D.IndexMapper<CalendarDate>
    • toKey

      default CalendarDate toKey(long index)
      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 by Structure1D.IndexMapper.toIndex(Object)).
      Specified by:
      toKey in interface Structure1D.IndexMapper<CalendarDate>