Class StringRegexReplace
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<String,String>
-
- uk.gov.gchq.koryphe.impl.function.StringRegexReplace
-
public class StringRegexReplace extends KorypheFunction<String,String>
AStringRegexReplace
is aFunction
which takes an input string and applies the provided regular expression to find matching substrings to replace. It then replaces all of these matches with the provided replacement string.- See Also:
StringReplace
-
-
Constructor Summary
Constructors Constructor Description StringRegexReplace()
StringRegexReplace(String regex, String replacement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(String input)
boolean
equals(Object o)
String
getRegex()
String
getReplacement()
int
hashCode()
void
setRegex(String regex)
void
setReplacement(String replacement)
-
-
-
Method Detail
-
getRegex
public String getRegex()
-
setRegex
public void setRegex(String regex)
-
getReplacement
public String getReplacement()
-
setReplacement
public void setReplacement(String replacement)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classKorypheFunction<String,String>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKorypheFunction<String,String>
-
-