class StringPredicates
A collection of predefined string related Predicate
implementations.
Those are especially useful in cases of compiler method ambiguity errors caused by Java type erasure.
static fun contains(charSequence: CharSequence): Predicate<String!>!
Returns a predicate checking if a String contains the given char sequence. |
|
static fun contentEquals(charSequence: CharSequence): Predicate<String!>!
Returns a predicate checking if a String has content equal to the given |
|
static fun endsWith(suffix: String): Predicate<String!>!
Returns a predicate checking if a String ends with the given suffix. |
|
static fun equalsIgnoreCase(another: String): Predicate<String!>!
Returns a predicate checking if a String has content equal to the given |
|
static fun isEmpty(): Predicate<String!>!
Returns a predicate checking if a String is empty. |
|
static fun startsWith(prefix: String): Predicate<String!>!
Returns a predicate checking if a String starts with the given prefix. |