greaterThan

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

Creates a PredicateSpecification that checks if the property is greater than 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 greater than the given value.

Parameters

value

the value to compare against.