numericRange

Numbers between min and max inclusive. A null bound is unbounded on that side.


fun numericRange(min: BigDecimal?, minExclusive: Boolean, max: BigDecimal?, maxExclusive: Boolean): ColumnPredicate

Numbers between min and max, with either bound optionally exclusive.

The strict form is here rather than in a caller because a caller could only approximate it: an inclusive range plus a separate "and not the endpoint" test is a second definition of matching, and one of the two would eventually disagree with the other about a value of another type. The endpoint of a strict bound is also the one value a caller must not be allowed to admit from the column alone, which is exactly the sort of thing that has to be decided where the matching is.