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

Method plus

src/main/java/groovy/time/TimeDuration.java:70–75  ·  view source on GitHub ↗

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

(final Duration rhs)

Source from the content-addressed store, hash-verified

68 * @return the combined duration
69 */
70 @Override
71 public Duration plus(final Duration rhs) {
72 return new TimeDuration(this.getDays() + rhs.getDays(), this.getHours() + rhs.getHours(),
73 this.getMinutes() + rhs.getMinutes(), this.getSeconds() + rhs.getSeconds(),
74 this.getMillis() + rhs.getMillis());
75 }
76
77 /**
78 * Adds a datum-dependent duration.

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected