notLike

fun <T : Any> KProperty1<T, String>.notLike(pattern: String): PredicateSpecification<T>(source)

Creates a PredicateSpecification that checks if the property does not match the given pattern.

Receiver

T – the type of the entity.

Return

A PredicateSpecification that checks if the property does not match the pattern.

Parameters

pattern

– The pattern to match against.


@JvmName(name = "notLikeNullable")
fun <T : Any> KProperty1<T, String?>.notLike(pattern: String): PredicateSpecification<T>(source)

Creates a PredicateSpecification that checks if the property does not match the given pattern (nullable version).

Receiver

T – the type of the entity.

Return

A PredicateSpecification that checks if the property does not match the pattern.

Parameters

pattern

– The pattern to match against.