public class NotStringFunction extends java.lang.Object implements StringFunction
StringFunction
returns the original string if the given StringFunction
returns null, or null otherwise.IDENTITY_FUNCTION
Constructor and Description |
---|
NotStringFunction(StringFunction stringFunction)
Creates a new NotStringFunction with the two given string functions.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(java.lang.String string)
Transforms the given string into a new string.
|
public NotStringFunction(StringFunction stringFunction)
public java.lang.String transform(java.lang.String string)
StringFunction
transform
in interface StringFunction