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 Summary
Constructors Constructor Description RegexPredicate(String expression, boolean negate) 
- 
Method Summary
All 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.util.function.BiPredicate
and, or 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
RegexPredicate
public RegexPredicate(String expression, boolean negate)
 
 - 
 
- 
Method Detail
- 
isNegate
public boolean isNegate()
 
- 
getPattern
public String getPattern()
 
- 
test
public boolean test(String value, String expression)
- Specified by:
 testin interfaceBiPredicate<String,String>
 
- 
negate
public PBiPredicate<String,String> negate()
Description copied from interface:PBiPredicateReturns a predicate that represents the logical negation of this predicate.- Specified by:
 negatein interfaceBiPredicate<String,String>- Specified by:
 negatein interfacePBiPredicate<String,String>
 
- 
getPredicateName
public String getPredicateName()
Description copied from interface:PBiPredicateGets predicate name that can be used for serialization.- Specified by:
 getPredicateNamein interfacePBiPredicate<String,String>
 
 - 
 
 -