Interface TemporalAmount

All Known Implementing Classes:
Duration, Period

public interface TemporalAmount
An amount of time, such as a Duration or a Period.
  • Method Details

    • get

      long get(TemporalUnit unit)
      The amount of unit this holds.
    • getUnits

      List<TemporalUnit> getUnits()
      The units this amount is made of.
    • addTo

      Temporal addTo(Temporal temporal)
      temporal moved forward by this amount.
    • subtractFrom

      Temporal subtractFrom(Temporal temporal)
      temporal moved back by this amount.