between
fun <T : Any, P : Comparable<P>> KProperty1<T, P?>.between(lower: P, upper: P): PredicateSpecification<T>(source)
Creates a PredicateSpecification that checks if the property is between two values (inclusive).
Receiver
T – the type of the entity.
P - the type of the properties, which must be Comparable.
Return
A PredicateSpecification that checks if the property is between the two values.
Parameters
lower
– the lower bound value (inclusive).
upper
– the upper bound value (inclusive).