lessThan

fun <T : Any, P : Comparable<P>> KProperty1<T, P?>.lessThan(value: P): Specification<T>(source)

Creates a Specification that checks if the property is less than the given value.

Receiver

T – the type of the entity.

P - the type of the property, which must be Comparable.

Return

A Specification that checks if the property is less than the given value.

Parameters

value

– the value to compare against.