public class MatchingStringFunction extends java.lang.Object implements StringFunction
StringFunction
returns unchanged strings or null, depending on whether a given
string matcher matches the strings. It can be seen as an adapter from StringMatcher
or
StringFunction
.IDENTITY_FUNCTION
Constructor and Description |
---|
MatchingStringFunction(StringMatcher stringMatcher)
Creates a new MatchingStringFunction with the given string matcher.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(java.lang.String string)
Transforms the given string into a new string.
|
public MatchingStringFunction(StringMatcher stringMatcher)
public java.lang.String transform(java.lang.String string)
StringFunction
transform
in interface StringFunction