Class Text.RegexPredicate
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.Text.RegexPredicate
 
- 
- All Implemented Interfaces:
- Serializable,- BiPredicate<String,String>,- PBiPredicate<String,String>
 - Enclosing class:
- Text
 
 public static class Text.RegexPredicate extends Object implements PBiPredicate<String,String>, Serializable Allows for a compiled version of the regex pattern.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description RegexPredicate(String expression, boolean negate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetPattern()StringgetPredicateName()Gets predicate name that can be used for serialization.inthashCode()booleanisNegate()PBiPredicate<String,String>negate()Returns a predicate that represents the logical negation of this predicate.booleantest(String value, String expression)StringtoString()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.function.BiPredicateand, or
 
- 
 
- 
- 
- 
Constructor Detail- 
RegexPredicatepublic RegexPredicate(String expression, boolean negate) 
 
- 
 - 
Method Detail- 
isNegatepublic boolean isNegate() 
 - 
getPatternpublic String getPattern() 
 - 
testpublic boolean test(String value, String expression) - Specified by:
- testin interface- BiPredicate<String,String>
 
 - 
negatepublic PBiPredicate<String,String> negate() Description copied from interface:PBiPredicateReturns a predicate that represents the logical negation of this predicate.- Specified by:
- negatein interface- BiPredicate<String,String>
- Specified by:
- negatein interface- PBiPredicate<String,String>
 
 - 
getPredicateNamepublic String getPredicateName() Description copied from interface:PBiPredicateGets predicate name that can be used for serialization.- Specified by:
- getPredicateNamein interface- PBiPredicate<String,String>
 
 
- 
 
-