between
fun <T : Any, P : Comparable<P>> KProperty1<T, P?>.between(lower: P, upper: P): Specification<T>(source)
Creates a Specification 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 Specification that checks if the property is between the two values.
Parameters
lower
– the lower bound value (inclusive).
upper
– the upper bound value (inclusive).