173 |
|
* {@code unit.convert(Duration.of(n, unit.toChronoUnit()))} |
174 |
|
* is equivalent to {@code n} (in the absence of overflow). |
175 |
|
* |
176 |
< |
* <p>This method differs from {@link Duration#toNanos()} in that |
177 |
< |
* it does not throw {@link ArithmeticException} on numeric overflow. |
176 |
> |
* @apiNote |
177 |
> |
* This method differs from {@link Duration#toNanos()} in that it |
178 |
> |
* does not throw {@link ArithmeticException} on numeric overflow. |
179 |
|
* |
180 |
|
* @param duration the time duration |
181 |
|
* @return the converted duration in this unit, |