Class StringPredicates2
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.StringPredicates2
-
public final class StringPredicates2 extends java.lang.Object
The 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 class
StringPredicates2.ContainsString
private static class
StringPredicates2.EndsWith
private static class
StringPredicates2.EqualsIgnoreCase
private static class
StringPredicates2.MatchesRegex
private static class
StringPredicates2.NotContainsString
private static class
StringPredicates2.NotEndsWith
private static class
StringPredicates2.NotEqualsIgnoreCase
private static class
StringPredicates2.NotStartsWith
private static class
StringPredicates2.StartsWith
-
Field Summary
Fields Modifier and Type Field Description private static StringPredicates2.ContainsString
CONTAINS_STRING
private static StringPredicates2.EndsWith
ENDS_WITH
private static StringPredicates2.EqualsIgnoreCase
EQUALS_IGNORE_CASE
private static StringPredicates2.MatchesRegex
MATCHES_REGEX
private static StringPredicates2.NotContainsString
NOT_CONTAINS_STRING
private static StringPredicates2.NotEndsWith
NOT_ENDS_WITH
private static StringPredicates2.NotEqualsIgnoreCase
NOT_EQUALS_IGNORE_CASE
private static StringPredicates2.NotStartsWith
NOT_STARTS_WITH
private static StringPredicates2.StartsWith
STARTS_WITH
-
Constructor Summary
Constructors Modifier Constructor Description private
StringPredicates2()
-
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()
-
-