MCPcopy Index your code
hub / github.com/apache/groovy / plus

Method plus

src/main/java/groovy/time/Duration.java:55–59  ·  view source on GitHub ↗

Adds another fixed duration. @param rhs the duration to add @return the combined duration

(final Duration rhs)

Source from the content-addressed store, hash-verified

53 * @return the combined duration
54 */
55 public Duration plus(final Duration rhs) {
56 return new Duration(this.getDays() + rhs.getDays(), this.getHours() + rhs.getHours(),
57 this.getMinutes() + rhs.getMinutes(), this.getSeconds() + rhs.getSeconds(),
58 this.getMillis() + rhs.getMillis());
59 }
60
61 /**
62 * Adds a time duration.

Callers

nothing calls this directly

Calls 5

getMillisMethod · 0.80
getDaysMethod · 0.45
getHoursMethod · 0.45
getMinutesMethod · 0.45
getSecondsMethod · 0.45

Tested by

no test coverage detected