Class StringPredicates2
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.StringPredicates2
-
public final class StringPredicates2 extends java.lang.ObjectThe StringPredicates2 class is a factory that produces Predicate2 instances that work with Strings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classStringPredicates2.ContainsStringprivate static classStringPredicates2.EndsWithprivate static classStringPredicates2.EqualsIgnoreCaseprivate static classStringPredicates2.MatchesRegexprivate static classStringPredicates2.NotContainsStringprivate static classStringPredicates2.NotEndsWithprivate static classStringPredicates2.NotEqualsIgnoreCaseprivate static classStringPredicates2.NotStartsWithprivate static classStringPredicates2.StartsWith
-
Field Summary
Fields Modifier and Type Field Description private static StringPredicates2.ContainsStringCONTAINS_STRINGprivate static StringPredicates2.EndsWithENDS_WITHprivate static StringPredicates2.EqualsIgnoreCaseEQUALS_IGNORE_CASEprivate static StringPredicates2.MatchesRegexMATCHES_REGEXprivate static StringPredicates2.NotContainsStringNOT_CONTAINS_STRINGprivate static StringPredicates2.NotEndsWithNOT_ENDS_WITHprivate static StringPredicates2.NotEqualsIgnoreCaseNOT_EQUALS_IGNORE_CASEprivate static StringPredicates2.NotStartsWithNOT_STARTS_WITHprivate static StringPredicates2.StartsWithSTARTS_WITH
-
Constructor Summary
Constructors Modifier Constructor Description privateStringPredicates2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicates2<java.lang.String,java.lang.String>contains()Returns true if a String specified on the predicate is contained within a String passed to the accept method.static Predicates2<java.lang.String,java.lang.String>endsWith()Returns true if a String passed to the accept method ends with the string specified on the predicate.static Predicates2<java.lang.String,java.lang.String>equalsIgnoreCase()static Predicates2<java.lang.String,java.lang.String>matches()static Predicates2<java.lang.String,java.lang.String>notContains()Returns true if a String specified on the predicate is contained within a String passed to the accept method.static Predicates2<java.lang.String,java.lang.String>notEndsWith()Returns false if a String passed to the accept method ends with the string specified on the predicate.static Predicates2<java.lang.String,java.lang.String>notEqualsIgnoreCase()static Predicates2<java.lang.String,java.lang.String>notStartsWith()Returns false if a String passed to the accept method starts with the string specified on the predicate.static Predicates2<java.lang.String,java.lang.String>startsWith()Returns true if a String passed to the accept method starts with the string specified on the predicate.
-
-
-
Field Detail
-
CONTAINS_STRING
private static final StringPredicates2.ContainsString CONTAINS_STRING
-
NOT_CONTAINS_STRING
private static final StringPredicates2.NotContainsString NOT_CONTAINS_STRING
-
STARTS_WITH
private static final StringPredicates2.StartsWith STARTS_WITH
-
NOT_STARTS_WITH
private static final StringPredicates2.NotStartsWith NOT_STARTS_WITH
-
ENDS_WITH
private static final StringPredicates2.EndsWith ENDS_WITH
-
NOT_ENDS_WITH
private static final StringPredicates2.NotEndsWith NOT_ENDS_WITH
-
EQUALS_IGNORE_CASE
private static final StringPredicates2.EqualsIgnoreCase EQUALS_IGNORE_CASE
-
NOT_EQUALS_IGNORE_CASE
private static final StringPredicates2.NotEqualsIgnoreCase NOT_EQUALS_IGNORE_CASE
-
MATCHES_REGEX
private static final StringPredicates2.MatchesRegex MATCHES_REGEX
-
-
Method Detail
-
contains
public static Predicates2<java.lang.String,java.lang.String> contains()
Returns true if a String specified on the predicate is contained within a String passed to the accept method.
-
notContains
public static Predicates2<java.lang.String,java.lang.String> notContains()
Returns true if a String specified on the predicate is contained within a String passed to the accept method.- Since:
- 5.0
-
startsWith
public static Predicates2<java.lang.String,java.lang.String> startsWith()
Returns true if a String passed to the accept method starts with the string specified on the predicate.
-
notStartsWith
public static Predicates2<java.lang.String,java.lang.String> notStartsWith()
Returns false if a String passed to the accept method starts with the string specified on the predicate.- Since:
- 5.0
-
endsWith
public static Predicates2<java.lang.String,java.lang.String> endsWith()
Returns true if a String passed to the accept method ends with the string specified on the predicate.
-
notEndsWith
public static Predicates2<java.lang.String,java.lang.String> notEndsWith()
Returns false if a String passed to the accept method ends with the string specified on the predicate.- Since:
- 5.0
-
equalsIgnoreCase
public static Predicates2<java.lang.String,java.lang.String> equalsIgnoreCase()
-
notEqualsIgnoreCase
public static Predicates2<java.lang.String,java.lang.String> notEqualsIgnoreCase()
- Since:
- 5.0
-
matches
public static Predicates2<java.lang.String,java.lang.String> matches()
-
-