Class Regex
- java.lang.Object
-
- uk.gov.gchq.koryphe.predicate.KoryphePredicate<String>
-
- uk.gov.gchq.koryphe.impl.predicate.Regex
-
public class Regex extends KoryphePredicate<String>
ARegex
is aKoryphePredicate
that returns true if an input string matches a supplied regex pattern, false otherwise.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Pattern
getControlValue()
int
hashCode()
void
setControlValue(Pattern controlValue)
boolean
test(String input)
String
toString()
-
-
-
Method Detail
-
getControlValue
public Pattern getControlValue()
-
setControlValue
public void setControlValue(Pattern controlValue)
-
test
public boolean test(String input)
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classKoryphePredicate<String>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKoryphePredicate<String>
-
-