Package proguard.util
Class OrStringFunction
- java.lang.Object
-
- proguard.util.OrStringFunction
-
- All Implemented Interfaces:
StringFunction
public class OrStringFunction extends java.lang.Object implements StringFunction
ThisStringFunction
tests whether strings match either givenStringFunction
instances, returning the first non-null result.
-
-
Field Summary
-
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description OrStringFunction(StringFunction stringFunction1, StringFunction stringFunction2)
Creates a new AndStringFunction with the two given string functions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
transform(java.lang.String string)
Transforms the given string into a new string.
-
-
-
Constructor Detail
-
OrStringFunction
public OrStringFunction(StringFunction stringFunction1, StringFunction stringFunction2)
Creates a new AndStringFunction with the two given string functions.
-
-
Method Detail
-
transform
public java.lang.String transform(java.lang.String string)
Description copied from interface:StringFunction
Transforms the given string into a new string.- Specified by:
transform
in interfaceStringFunction
-
-