Class Text.RegexPredicate
- java.lang.Object
 - 
- org.apache.tinkerpop.gremlin.process.traversal.Text.RegexPredicate
 
 
- 
- All Implemented Interfaces:
 Serializable,BiPredicate<String,String>
- Enclosing class:
 - Text
 
public static class Text.RegexPredicate extends Object implements BiPredicate<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()inthashCode()booleanisNegate()BiPredicate<String,String>negate()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 BiPredicate<String,String> negate()
- Specified by:
 negatein interfaceBiPredicate<String,String>
 
 - 
 
 -