public class OrStringFunction extends java.lang.Object implements StringFunction
StringFunction
tests whether strings match either given StringFunction
instances, returning the first non-null result.IDENTITY_FUNCTION
Constructor and Description |
---|
OrStringFunction(StringFunction stringFunction1,
StringFunction stringFunction2)
Creates a new AndStringFunction 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 OrStringFunction(StringFunction stringFunction1, StringFunction stringFunction2)
public java.lang.String transform(java.lang.String string)
StringFunction
transform
in interface StringFunction