Class ToStringConversion

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

public class ToStringConversion extends NullConversion<Object,Object>
Converts any non-null object to its String representation.
  • Constructor Details

    • ToStringConversion

      public ToStringConversion()
    • ToStringConversion

      public ToStringConversion(Object valueOnNullInput, Object valueOnNullOutput)
  • Method Details

    • fromInput

      protected Object fromInput(Object input)
      Description copied from class: NullConversion
      Creates an instance of O from a I object
      Specified by:
      fromInput in class NullConversion<Object,Object>
      Parameters:
      input - The object of type I to be converted to O
      Returns:
      an instance of O, converted from the I input.
    • undo

      protected Object undo(Object input)
      Description copied from class: NullConversion
      Converts a value of type O back to I.
      Specified by:
      undo in class NullConversion<Object,Object>
      Parameters:
      input - the input object to be converted to I
      Returns:
      the conversion result