Class StringPredicates2
java.lang.Object
org.eclipse.collections.impl.block.factory.StringPredicates2
public final class StringPredicates2 extends Object
The StringPredicates2 class is a factory that produces Predicate2 instances that work with Strings.
-
Method Summary
Modifier and Type Method Description static Predicates2<String,String>
contains()
Returns true if a String specified on the predicate is contained within a String passed to the the accept method.static Predicates2<String,String>
endsWith()
Returns true if a String passed to the the accept method ends with the string specified on the predicate.static Predicates2<String,String>
equalsIgnoreCase()
static Predicates2<String,String>
matches()
static Predicates2<String,String>
notContains()
Returns true if a String specified on the predicate is contained within a String passed to the the accept method.static Predicates2<String,String>
notEndsWith()
Returns false if a String passed to the the accept method ends with the string specified on the predicate.static Predicates2<String,String>
notEqualsIgnoreCase()
static Predicates2<String,String>
notStartsWith()
Returns false if a String passed to the the accept method starts with the string specified on the predicate.static Predicates2<String,String>
startsWith()
Returns true if a String passed to the the accept method starts with the string specified on the predicate.
-
Method Details
-
contains
Returns true if a String specified on the predicate is contained within a String passed to the the accept method. -
notContains
Returns true if a String specified on the predicate is contained within a String passed to the the accept method.- Since:
- 5.0
-
startsWith
Returns true if a String passed to the the accept method starts with the string specified on the predicate. -
notStartsWith
Returns false if a String passed to the the accept method starts with the string specified on the predicate.- Since:
- 5.0
-
endsWith
Returns true if a String passed to the the accept method ends with the string specified on the predicate. -
notEndsWith
Returns false if a String passed to the the accept method ends with the string specified on the predicate.- Since:
- 5.0
-
equalsIgnoreCase
-
notEqualsIgnoreCase
- Since:
- 5.0
-
matches
-