Class ReplaceRegex
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.unary_string.ReplaceRegex
- All Implemented Interfaces:
java.util.function.Function<java.lang.String,java.lang.String>
public class ReplaceRegex
extends java.lang.Object
implements java.util.function.Function<java.lang.String,java.lang.String>
Replace all occurrences of the regular expression with the replacement string.
Note, this is much less efficient than using the simple ReplaceAll for most cases.
-
Constructor Summary
Constructors Constructor Description ReplaceRegex(java.lang.String regex, java.lang.String replacement) -
Method Summary
Modifier and Type Method Description java.lang.Stringapply(java.lang.String s)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.Function
andThen, compose
-
Constructor Details
-
ReplaceRegex
public ReplaceRegex(java.lang.String regex, java.lang.String replacement)
-
-
Method Details
-
apply
public java.lang.String apply(java.lang.String s)- Specified by:
applyin interfacejava.util.function.Function<java.lang.String,java.lang.String>
-