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 boolean
equals(Object o)
String
getPattern()
String
getPredicateName()
Gets predicate name that can be used for serialization.int
hashCode()
boolean
isNegate()
PBiPredicate<String,String>
negate()
Returns a predicate that represents the logical negation of this predicate.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 PBiPredicate<String,String> negate()
Description copied from interface:PBiPredicate
Returns a predicate that represents the logical negation of this predicate.- Specified by:
negate
in interfaceBiPredicate<String,String>
- Specified by:
negate
in interfacePBiPredicate<String,String>
-
getPredicateName
public String getPredicateName()
Description copied from interface:PBiPredicate
Gets predicate name that can be used for serialization.- Specified by:
getPredicateName
in interfacePBiPredicate<String,String>
-
-