The omission of java.time.Duration.isPositive() seems odd.
It would be useful compared to alternatives using existing methods.
!isZero() && !isNegative()
!.negate().isNegative()
.compareTo(Duration.ZERO) > 0
See http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-December/045552.html
It would be useful compared to alternatives using existing methods.
!isZero() && !isNegative()
!.negate().isNegative()
.compareTo(Duration.ZERO) > 0
See http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-December/045552.html
- csr for
-
JDK-8271167 java.time.Duration missing isPositive method
-
- Closed
-