Class StringPredicates2


  • public final class StringPredicates2
    extends java.lang.Object
    The StringPredicates2 class is a factory that produces Predicate2 instances that work with Strings.
    • Constructor Detail

      • StringPredicates2

        private StringPredicates2()
    • 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()