Package net.time4j

Interface WallTimeElement

All Superinterfaces:
ChronoElement<PlainTime>, Comparator<ChronoDisplay>, ZonalElement<PlainTime>

public interface WallTimeElement extends ZonalElement<PlainTime>

Represents the wall time.

Defines additional operators for moving a timestamp to a new wall time possibly changing the day.

Since:
1.2
Author:
Meno Hochschild
  • Method Details

    • setToNext

      ElementOperator<?> setToNext(PlainTime value)

      Moves a timestamp to the next given wall time and change the day if necessary.

      Parameters:
      value - new wall time which is after current wall time
      Returns:
      operator directly applicable on PlainTimestamp
      Since:
      1.2
      See Also:
      PlainTimestamp.with(ElementOperator)
    • setToPrevious

      ElementOperator<?> setToPrevious(PlainTime value)

      Moves a timestamp to the previous given wall time and change the day backwards if necessary.

      Parameters:
      value - new wall time which is before current wall time
      Returns:
      operator directly applicable on PlainTimestamp
      Since:
      1.2
      See Also:
      PlainTimestamp.with(ElementOperator)
    • setToNextOrSame

      ElementOperator<?> setToNextOrSame(PlainTime value)

      Moves a timestamp to the next or same given wall time and change the day if necessary.

      Parameters:
      value - new wall time which is not before current wall time
      Returns:
      operator directly applicable on PlainTimestamp
      Since:
      1.2
      See Also:
      PlainTimestamp.with(ElementOperator)
    • setToPreviousOrSame

      ElementOperator<?> setToPreviousOrSame(PlainTime value)

      Moves a timestamp to the previous or same given wall time and change the day backwards if necessary.

      Parameters:
      value - new wall time which is not after current wall time
      Returns:
      operator directly applicable on PlainTimestamp
      Since:
      1.2
      See Also:
      PlainTimestamp.with(ElementOperator)
    • roundedToFullHour

      ElementOperator<PlainTime> roundedToFullHour()

      Performs rounding to full hour in half rounding mode.

      Returns:
      operator also applicable on PlainTimestamp
      Since:
      1.2
    • roundedToFullMinute

      ElementOperator<PlainTime> roundedToFullMinute()

      Performs rounding to full minute in half rounding mode.

      Returns:
      operator also applicable on PlainTimestamp
      Since:
      1.2
    • setToNextFullHour

      ElementOperator<PlainTime> setToNextFullHour()

      Adjusts to next full hour.

      Returns:
      operator also applicable on PlainTimestamp
      Since:
      1.2
    • setToNextFullMinute

      ElementOperator<PlainTime> setToNextFullMinute()

      Adjusts to next full minute.

      Returns:
      operator also applicable on PlainTimestamp
      Since:
      1.2