Class UpperCaseConversion

java.lang.Object
com.univocity.parsers.conversions.UpperCaseConversion
All Implemented Interfaces:
Conversion<String,String>

public class UpperCaseConversion extends Object implements Conversion<String,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.
  • Constructor Details

    • UpperCaseConversion

      public UpperCaseConversion()
  • Method Details

    • execute

      public String execute(String input)
      Applies the toUpperCase operation in the input and returns the result. Equivalent to revert(String)
      Specified by:
      execute in interface Conversion<String,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 String revert(String input)
      Applies the toUpperCase operation in the input and returns the result. Equivalent to execute(String)
      Specified by:
      revert in interface Conversion<String,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.