Hi core-libs-dev,

My coworker and I were just puzzling over the seemingly trivially missing
java.time.Duration#isPositive

There are already "isNegative" and "isZero" -- but for isPositive the best
we came up with were awful things like

!isZero() && !isNegative()
!.negate().isNegative()
.compareTo(Duration.ZERO) > 0

but all of these feel way worse than a simple isPositive method.
Can you shed some light as to why this is missing?

Thanks!
Steven

Reply via email to