public final class StringPredicates
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static Predicates<java.lang.String> |
contains(char character) |
Returns true if a char specified on the predicate is contained within a String passed to the the accept
method.
|
static Predicates<java.lang.String> |
contains(java.lang.String otherString) |
Returns true if a String specified on the predicate is contained within a String passed to the the accept
method.
|
static Predicates<java.lang.String> |
empty() |
|
static Predicates<java.lang.String> |
endsWith(java.lang.String substring) |
Returns true if a String passed to the the accept method ends with the string specified on the predicate.
|
static Predicates<java.lang.String> |
equalsIgnoreCase(java.lang.String otherString) |
|
static Predicates<java.lang.String> |
greaterThan(java.lang.String string) |
|
static Predicates<java.lang.String> |
greaterThanOrEqualTo(java.lang.String string) |
|
static Predicates<java.lang.String> |
hasDigits() |
|
static Predicates<java.lang.String> |
hasLetters() |
|
static Predicates<java.lang.String> |
hasLettersAndDigits() |
|
static Predicates<java.lang.String> |
hasLettersOrDigits() |
|
static Predicates<java.lang.String> |
hasLowerCase() |
|
static Predicates<java.lang.String> |
hasSpaces() |
|
static Predicates<java.lang.String> |
hasUndefined() |
|
static Predicates<java.lang.String> |
hasUpperCase() |
|
static Predicates<java.lang.String> |
isAlpha() |
|
static Predicates<java.lang.String> |
isAlphanumeric() |
|
static Predicates<java.lang.String> |
isBlank() |
|
static Predicates<java.lang.String> |
isNumeric() |
|
static Predicates<java.lang.String> |
lessThan(java.lang.String string) |
|
static Predicates<java.lang.String> |
lessThanOrEqualTo(java.lang.String string) |
|
static Predicates<java.lang.String> |
matches(java.lang.String regex) |
|
static Predicates<java.lang.String> |
notBlank() |
|
static Predicates<java.lang.String> |
notContains(java.lang.String otherString) |
Returns true if a String specified on the predicate is contained within a String passed to the the accept
method.
|
static Predicates<java.lang.String> |
notEmpty() |
|
static Predicates<java.lang.String> |
size(int size) |
|
static Predicates<java.lang.String> |
startsWith(java.lang.String substring) |
Returns true if a String passed to the the accept method starts with the string specified on the predicate.
|
public static Predicates<java.lang.String> empty()
public static Predicates<java.lang.String> notEmpty()
public static Predicates<java.lang.String> contains(java.lang.String otherString)
public static Predicates<java.lang.String> notContains(java.lang.String otherString)
public static Predicates<java.lang.String> contains(char character)
public static Predicates<java.lang.String> startsWith(java.lang.String substring)
public static Predicates<java.lang.String> endsWith(java.lang.String substring)
public static Predicates<java.lang.String> size(int size)
public static Predicates<java.lang.String> equalsIgnoreCase(java.lang.String otherString)
public static Predicates<java.lang.String> matches(java.lang.String regex)
public static Predicates<java.lang.String> lessThan(java.lang.String string)
public static Predicates<java.lang.String> lessThanOrEqualTo(java.lang.String string)
public static Predicates<java.lang.String> greaterThan(java.lang.String string)
public static Predicates<java.lang.String> greaterThanOrEqualTo(java.lang.String string)
public static Predicates<java.lang.String> hasLetters()
public static Predicates<java.lang.String> hasDigits()
public static Predicates<java.lang.String> hasLettersOrDigits()
public static Predicates<java.lang.String> hasLettersAndDigits()
public static Predicates<java.lang.String> hasSpaces()
public static Predicates<java.lang.String> hasUpperCase()
public static Predicates<java.lang.String> hasLowerCase()
public static Predicates<java.lang.String> hasUndefined()
public static Predicates<java.lang.String> isNumeric()
public static Predicates<java.lang.String> isAlphanumeric()
public static Predicates<java.lang.String> isBlank()
public static Predicates<java.lang.String> notBlank()
public static Predicates<java.lang.String> isAlpha()
Copyright © 2004–2018. All rights reserved.