lessThanOrEqualTo

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

Creates a PredicateSpecification that checks if the property is less than or equal to the given value.

Receiver

T – the type of the entity.

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

Return

A PredicateSpecification that checks if the property is less than or equal to the given value.

Parameters

value

– the value to compare against.