exist
exist copied to clipboard
[refactor] Restructure RangeIndexAttributeCondition
Description:
These private properties of RangeIndexAttributeCondition
- String value
- boolean caseSensitive
- boolean numericComparison
- Double numericValue
- String lowercaseValue
- Pattern pattern
were replaced by
- boolean commutative
- boolean commutativeNegate
- Predicate<String> indexPredicate
- Predicate<AtomicValue> queryPredicate
indexPredicate and queryPredicate are references to one-line lambdas.
Before, a lot of switching and checking happened on each call to find and matches
@reinhapa I believe the changes you requested were addressed in the meantime
@reinhapa could you please re-review, I believe it's good to go
commutativeNegate could be renamed to converse (see https://en.m.wikipedia.org/wiki/Converse_relation and https://en.m.wikipedia.org/wiki/Inequality_(mathematics) ).
