()
| 1597 | * @see #inverse() |
| 1598 | */ |
| 1599 | public Duration<U> abs() { |
| 1600 | |
| 1601 | if (this.isNegative()) { |
| 1602 | return this.inverse(); |
| 1603 | } else { |
| 1604 | return this; |
| 1605 | } |
| 1606 | |
| 1607 | } |
| 1608 | |
| 1609 | /** |
| 1610 | * <p>Gets a copy of this duration with reversed sign. </p> |
no test coverage detected