Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KiwiDurations utility class for working with java.time.Duration #1223

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

sleberknight
Copy link
Member

Java's Duration contains (instance) methods isNegative() and isZero(), but nothing else. Add convenience methods that allow for one-liner checks of Duration instances whether they are positive, positive or zero, or negative or zero.

The initial KiwiDurations contains the following methods:

  • isPositive
  • isPositiveOrZero
  • isNegativeOrZero

Closes #1221

Java's Duration contains (instance) methods isNegative() and
isZero(), but nothing else. Add convenience methods that allow
for one-liner checks of Duration instances whether they are
positive, positive or zero, or negative or zero.

The initial KiwiDurations contains the following methods:

* isPositive
* isPositiveOrZero
* isNegativeOrZero

Closes #1221
@sleberknight sleberknight self-assigned this Dec 24, 2024
@sleberknight sleberknight merged commit 519bbcb into main Dec 24, 2024
6 checks passed
@sleberknight sleberknight deleted the 1221-add-KiwiDurations branch December 24, 2024 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add utilities related to java.time.Duration
1 participant