likeRegexp

fun <T : Any> KProperty1<T, String>.likeRegexp(pattern: String): Specification<T>(source)

Creates a Specification that checks if the property matches the given POSIX regex pattern (case-sensitive).

Return

A Specification that checks if the property matches the pattern.

Parameters

pattern

The POSIX regex pattern to match against.

Type Parameters

T

the type of the entity.


@JvmName(name = "likeRegexpNullable")
fun <T : Any> KProperty1<T, String?>.likeRegexp(pattern: String): Specification<T>(source)

Creates a Specification that checks if the property matches the given POSIX regex pattern, case-sensitive (nullable version).

Return

A Specification that checks if the property matches the pattern.

Parameters

pattern

The POSIX regex pattern to match against.

Type Parameters

T

the type of the entity.


fun <ROOT : Any> NestedProperty<ROOT, String>.likeRegexp(pattern: String): Specification<ROOT>(source)

Creates a Specification that checks if the nested String property matches the given POSIX regex pattern (case-sensitive).

Return

A Specification that checks if the nested property matches the pattern.

Parameters

pattern

The POSIX regex pattern to match against.

Type Parameters

ROOT

the root entity type.


@JvmName(name = "nestedLikeRegexpNullable")
fun <ROOT : Any> NestedProperty<ROOT, String?>.likeRegexp(pattern: String): Specification<ROOT>(source)

Creates a Specification that checks if the nested nullable String property matches the given POSIX regex pattern, case-sensitive (nullable version).

Return

A Specification that checks if the nested property matches the pattern.

Parameters

pattern

The POSIX regex pattern to match against.

Type Parameters

ROOT

the root entity type.