Package: org.apache.groovy.dateutil

## [Java] Class Duration

- org.apache.groovy.dateutil.Duration

-     public class Duration
      extends BaseDuration

  A context-independent duration: days and below, whose length is known without a datum.

  DEQUIRKED: `toMilliseconds()`, `getAgo()` and `getFrom()` are now inherited from BaseDuration (uniform, deterministic, time-preserving); only the type-preserving arithmetic remains here.

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class BaseDuration` | `days, hours, millis, minutes, months, seconds, years`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `Duration(int days, int hours, int minutes, int seconds, int millis)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Duration` | `minus(Duration rhs)`
    `` | `public TimeDuration` | `minus(TimeDuration rhs)`
    `` | `public DatumDependentDuration` | `minus(DatumDependentDuration rhs)`
    `` | `public TimeDatumDependentDuration` | `minus(TimeDatumDependentDuration rhs)`
    `` | `public Duration` | `plus(Duration rhs)`
    `` | `public Duration` | `plus(TimeDuration rhs)`
    `` | `public DatumDependentDuration` | `plus(DatumDependentDuration rhs)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class BaseDuration` | `compareTo, getAgo, getDays, getFrom, getHours, getMillis, getMinutes, getMonths, getSeconds, getYears, plus, toMilliseconds, toString`

- - ### Constructor Detail

    - #### public Duration(int days, int hours, int minutes, int seconds, int millis)

  - ### Method Detail

    - #### public Duration minus(Duration rhs)

    - #### public TimeDuration minus(TimeDuration rhs)

    - #### public DatumDependentDuration minus(DatumDependentDuration rhs)

    - #### public TimeDatumDependentDuration minus(TimeDatumDependentDuration rhs)

    - #### public Duration plus(Duration rhs)

    - #### public Duration plus(TimeDuration rhs)

    - #### public DatumDependentDuration plus(DatumDependentDuration rhs)