Class MultiRegex
- java.lang.Object
-
- uk.gov.gchq.koryphe.predicate.KoryphePredicate<String>
-
- uk.gov.gchq.koryphe.impl.predicate.MultiRegex
-
public class MultiRegex extends KoryphePredicate<String>
AMultiRegex
is aKoryphePredicate
that returns true if an input string matches a provided multiregex pattern, false otherwise. Multiple patterns are passed in as an array.
-
-
Constructor Summary
Constructors Constructor Description MultiRegex()
MultiRegex(Pattern... patterns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Pattern[]
getPatterns()
int
hashCode()
void
setPatterns(Pattern[] patterns)
boolean
test(String input)
String
toString()
-
-
-
Constructor Detail
-
MultiRegex
public MultiRegex()
-
MultiRegex
public MultiRegex(Pattern... patterns)
-
-
Method Detail
-
getPatterns
public Pattern[] getPatterns()
-
setPatterns
public void setPatterns(Pattern[] patterns)
-
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>
-
-