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