Class UpperCaseConversion

  • All Implemented Interfaces:
    Conversion<java.lang.String,​java.lang.String>

    public class UpperCaseConversion
    extends java.lang.Object
    implements Conversion<java.lang.String,​java.lang.String>
    Converts an input String to its upper case representation The revert(String) implements the same behavior of execute(String). Null inputs produce null outputs.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String execute​(java.lang.String input)
      Applies the toUpperCase operation in the input and returns the result.
      java.lang.String revert​(java.lang.String input)
      Applies the toUpperCase operation in the input and returns the result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpperCaseConversion

        public UpperCaseConversion()
    • Method Detail

      • execute

        public java.lang.String execute​(java.lang.String input)
        Applies the toUpperCase operation in the input and returns the result. Equivalent to revert(String)
        Specified by:
        execute in interface Conversion<java.lang.String,​java.lang.String>
        Parameters:
        input - the String to be converted to upper case
        Returns:
        the upper case representation of the given input, or null if the input is null.
      • revert

        public java.lang.String revert​(java.lang.String input)
        Applies the toUpperCase operation in the input and returns the result. Equivalent to execute(String)
        Specified by:
        revert in interface Conversion<java.lang.String,​java.lang.String>
        Parameters:
        input - the String to be converted to upper case
        Returns:
        the upper case representation of the given input, or null if the input is null.