public class SuffixAddingStringFunction extends java.lang.Object implements StringFunction
StringFunction
adds a given suffix to each transformed String.IDENTITY_FUNCTION
Constructor and Description |
---|
SuffixAddingStringFunction(java.lang.String suffix)
Creates a new SuffixAddingStringFunction.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(java.lang.String string)
Transforms the given string into a new string.
|
public SuffixAddingStringFunction(java.lang.String suffix)
suffix
- the suffix to add to each string.public java.lang.String transform(java.lang.String string)
StringFunction
transform
in interface StringFunction