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

Introduce number predicates #15

Closed
avegera opened this issue Jul 12, 2024 · 0 comments · Fixed by #17
Closed

Introduce number predicates #15

avegera opened this issue Jul 12, 2024 · 0 comments · Fixed by #17
Assignees
Labels
enhancement New feature or request

Comments

@avegera
Copy link
Owner

avegera commented Jul 12, 2024

Acceptance

Implementation of the following common number predicates should be added (place in the same Predicates.java class):

  • isGreaterThan
  • isGreaterThanOrEqualTo
  • isLessThan
  • isLessThanOrEqualTo
  • isBetween
  • notBetween
  • isOdd
  • isEven

Initial support of the following expression builder should be added:

where().number(Product::price).isGreaterThan(100);

All object predicates from #1 should be inherited:

where().number(Product::price).isEqualTo(someNumber);
where().number(Product::price).isNull();
where().number(Product::price).notNull();
...
@avegera avegera self-assigned this Jul 12, 2024
@avegera avegera added the enhancement New feature or request label Jul 12, 2024
@avegera avegera added this to the M1 - Release 0.1 milestone Jul 12, 2024
avegera added a commit that referenced this issue Jul 16, 2024
@avegera avegera linked a pull request Jul 16, 2024 that will close this issue
avegera added a commit that referenced this issue Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant