com.univocity.parsers.conversions
Class UpperCaseConversion

java.lang.Object
  extended by 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.

Author:
uniVocity Software Pty Ltd - [email protected]

Constructor Summary
UpperCaseConversion()
           
 
Method Summary
 String execute(String input)
          Applies the toUpperCase operation in the input and returns the result.
 String revert(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 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.


Copyright © 2014 uniVocity Software Pty Ltd. All rights reserved.