Adds another fixed duration. @param rhs the duration to add @return the combined duration
(final Duration rhs)
| 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. |
nothing calls this directly
no test coverage detected