Class TextP
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.P<String>
- 
- org.apache.tinkerpop.gremlin.process.traversal.TextP
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Predicate<String>
 
 public class TextP extends P<String> PredefinedPredicatevalues that can be used asStringfilters.- Author:
- Daniel Kuppitz (http://gremlin.guru)
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.PbiPredicate, originalValue, value
 
- 
 - 
Constructor SummaryConstructors Constructor Description TextP(PBiPredicate<String,String> biPredicate, String value)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextPclone()static TextPcontaining(String value)Determines if String does contain the given value.static TextPendingWith(String value)Determines if String does start with the given value.booleanequals(Object other)TextPnegate()static TextPnotContaining(String value)Determines if String does not contain the given value.static TextPnotEndingWith(String value)Determines if String does not start with the given value.static TextPnotRegex(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 ofregex(String).static TextPnotStartingWith(String value)Determines if String does not start with the given value.static TextPregex(String value)Determines if String has a match with the given regex pattern.static TextPstartingWith(String value)Determines if String does start with the given value.StringtoString()
 
- 
- 
- 
Constructor Detail- 
TextPpublic TextP(PBiPredicate<String,String> biPredicate, String value) 
 
- 
 - 
Method Detail- 
negatepublic TextP negate() 
 - 
startingWithpublic static TextP startingWith(String value) Determines if String does start with the given value.- Since:
- 3.4.0
 
 - 
notStartingWithpublic static TextP notStartingWith(String value) Determines if String does not start with the given value.- Since:
- 3.4.0
 
 - 
endingWithpublic static TextP endingWith(String value) Determines if String does start with the given value.- Since:
- 3.4.0
 
 - 
notEndingWithpublic static TextP notEndingWith(String value) Determines if String does not start with the given value.- Since:
- 3.4.0
 
 - 
containingpublic static TextP containing(String value) Determines if String does contain the given value.- Since:
- 3.4.0
 
 - 
notContainingpublic static TextP notContaining(String value) Determines if String does not contain the given value.- Since:
- 3.4.0
 
 - 
regexpublic 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
 
 - 
notRegexpublic 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 ofregex(String).- Since:
- 3.6.0
 
 
- 
 
-