public class SuffixRemovingStringFunction extends java.lang.Object implements StringFunction
StringFunction
removes a given suffix from each transformed String, if present.IDENTITY_FUNCTION
Constructor and Description |
---|
SuffixRemovingStringFunction(java.lang.String suffix)
Creates a new SuffixRemovingStringFunction.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(java.lang.String string)
Transforms the given string into a new string.
|
public SuffixRemovingStringFunction(java.lang.String suffix)
suffix
- the suffix to remove from each string.public java.lang.String transform(java.lang.String string)
StringFunction
transform
in interface StringFunction