Class TextP

    • Method Detail

      • startingWith

        public static TextP startingWith​(String value)
        Determines if String does start with the given value.
        Since:
        3.4.0
      • notStartingWith

        public static TextP notStartingWith​(String value)
        Determines if String does not start with the given value.
        Since:
        3.4.0
      • endingWith

        public static TextP endingWith​(String value)
        Determines if String does start with the given value.
        Since:
        3.4.0
      • notEndingWith

        public static TextP notEndingWith​(String value)
        Determines if String does not start with the given value.
        Since:
        3.4.0
      • containing

        public static TextP containing​(String value)
        Determines if String does contain the given value.
        Since:
        3.4.0
      • notContaining

        public static TextP notContaining​(String value)
        Determines if String does not contain the given value.
        Since:
        3.4.0
      • regex

        public static TextP regex​(String value)
        Determines if String has a match with the given regex pattern. The TinkerPop reference implementation uses Java syntax for regex. The string is considered a match to the pattern if any substring matches the pattern. It is therefore important to use the appropriate boundary matchers (e.g. `$` for end of a line) to ensure a proper match.
        Since:
        3.6.0
      • notRegex

        public static TextP notRegex​(String value)
        Determines if String has no match with the given regex pattern and the reference implementation treats it as a simple negation of the evaluation of the pattern match of regex(String).
        Since:
        3.6.0