isTrue

fun <T : Any> KProperty1<T, Boolean>.isTrue(): PredicateSpecification<T>(source)

Creates a PredicateSpecification that checks if the Boolean property is true.

Receiver

T – the type of the entity.

Return

A PredicateSpecification that checks if the property is true.


@JvmName(name = "isTrueNullable")
fun <T : Any> KProperty1<T, Boolean?>.isTrue(): PredicateSpecification<T>(source)

Creates a PredicateSpecification that checks if the nullable Boolean property is true.

Receiver

T – the type of the entity.

Return

A PredicateSpecification that checks if the property is true.