endsWith

fun endsWith(ignoreCase: Boolean, variable: String, suffix: String): Condition

Returns an Operator that checks whether the value found at key variable, as a string, ends with the given suffix.

Parameters

ignoreCase

true if the comparison should be done in a case-insensitive way; else false

variable

the key to extract the value from for the comparison

suffix

the target value to check against


fun endsWith(ignoreCase: Boolean, variable: JsonObjectPath, suffix: String): Condition

Returns an Operator that checks whether the value found at key variable, as a string, ends with the given suffix.

Parameters

ignoreCase

true if the comparison should be done in a case-insensitive way; else false

variable

the path to the key to extract the value from for the comparison

suffix

the target value to check against