public class FilteredStringFunction extends java.lang.Object implements StringFunction
StringFunction
delegates a given String to one of two other StringFunction
instances, depending on whether it matches the given filter.IDENTITY_FUNCTION
Constructor and Description |
---|
FilteredStringFunction(StringMatcher nameFilter,
StringFunction acceptedFunction,
StringFunction rejectedFunction) |
FilteredStringFunction(java.lang.String nameFilter,
StringFunction acceptedFunction,
StringFunction rejectedFunction) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(java.lang.String fileName)
Transforms the given string into a new string.
|
public FilteredStringFunction(StringMatcher nameFilter, StringFunction acceptedFunction, StringFunction rejectedFunction)
public FilteredStringFunction(java.lang.String nameFilter, StringFunction acceptedFunction, StringFunction rejectedFunction)
public java.lang.String transform(java.lang.String fileName)
StringFunction
transform
in interface StringFunction