public class ConstantStringFunction extends java.lang.Object implements StringFunction
StringFunction
returns a given constant string.IDENTITY_FUNCTION
Constructor and Description |
---|
ConstantStringFunction(java.lang.String string)
Creates a new MapStringFunction based on the given map.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(java.lang.String string)
Transforms the given string into a new string.
|
public ConstantStringFunction(java.lang.String string)
public java.lang.String transform(java.lang.String string)
StringFunction
transform
in interface StringFunction