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