Package proguard.util
Class NotStringFunction
- java.lang.Object
-
- proguard.util.NotStringFunction
-
- All Implemented Interfaces:
StringFunction
public class NotStringFunction extends java.lang.Object implements StringFunction
ThisStringFunctionreturns the original string if the givenStringFunctionreturns null, or null otherwise.
-
-
Field Summary
-
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description NotStringFunction(StringFunction stringFunction)Creates a new NotStringFunction with the two given string functions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringtransform(java.lang.String string)Transforms the given string into a new string.
-
-
-
Constructor Detail
-
NotStringFunction
public NotStringFunction(StringFunction stringFunction)
Creates a new NotStringFunction with the two given string functions.
-
-
Method Detail
-
transform
public java.lang.String transform(java.lang.String string)
Description copied from interface:StringFunctionTransforms the given string into a new string.- Specified by:
transformin interfaceStringFunction
-
-