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 boolean
equals(Object o)
String
getPattern()
int
hashCode()
boolean
isNegate()
BiPredicate<String,String>
negate()
boolean
test(String value, String expression)
String
toString()
-
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:
test
in interfaceBiPredicate<String,String>
-
negate
public BiPredicate<String,String> negate()
- Specified by:
negate
in interfaceBiPredicate<String,String>
-
-