Class StringPredicates
java.lang.Object
org.eclipse.collections.impl.block.factory.StringPredicates
The StringPredicates class is a factory that produces Predicates that work with Strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Predicates<String>
contains
(char character) Returns true if a char specified on the predicate is contained within a String passed to the accept method.static Predicates<String>
Returns true if a String specified on the predicate is contained within a String passed to the accept method.static Predicates<String>
empty()
static Predicates<String>
Returns true if a String passed to the accept method ends with the string specified on the predicate.static Predicates<String>
equalsIgnoreCase
(String otherString) static Predicates<String>
greaterThan
(String string) static Predicates<String>
greaterThanOrEqualTo
(String string) static Predicates<String>
static Predicates<String>
static Predicates<String>
static Predicates<String>
static Predicates<String>
static Predicates<String>
static Predicates<String>
static Predicates<String>
static Predicates<String>
isAlpha()
static Predicates<String>
static Predicates<String>
isBlank()
static Predicates<String>
static Predicates<String>
static Predicates<String>
lessThanOrEqualTo
(String string) static Predicates<String>
static Predicates<String>
notBlank()
static Predicates<String>
notContains
(String otherString) Returns true if a String specified on the predicate is contained within a String passed to the accept method.static Predicates<String>
notEmpty()
static Predicates<String>
size
(int size) static Predicates<String>
startsWith
(String substring) Returns true if a String passed to the accept method starts with the string specified on the predicate.
-
Method Details
-
empty
-
notEmpty
-
contains
Returns true if a String specified on the predicate is contained within a String passed to the accept method. -
notContains
Returns true if a String specified on the predicate is contained within a String passed to the accept method.- Since:
- 5.0
-
contains
Returns true if a char specified on the predicate is contained within a String passed to the accept method. -
startsWith
Returns true if a String passed to the accept method starts with the string specified on the predicate. -
endsWith
Returns true if a String passed to the accept method ends with the string specified on the predicate. -
size
-
equalsIgnoreCase
-
matches
-
lessThan
-
lessThanOrEqualTo
-
greaterThan
-
greaterThanOrEqualTo
-
hasLetters
-
hasDigits
-
hasLettersOrDigits
-
hasLettersAndDigits
-
hasSpaces
-
hasUpperCase
-
hasLowerCase
-
hasUndefined
-
isNumeric
-
isAlphanumeric
-
isBlank
-
notBlank
-
isAlpha
-