Top Description Constructors Methods
com.univocity.parsers.conversions

public Class ToStringConversion

extends NullConversion<Object, Object>
Class Inheritance

Converts any non-null object to its String representation.

Constructor Summary

AccessConstructor and Description
public
public
ToStringConversion(Object valueOnNullInput, Object valueOnNullOutput)

Method Summary

Modifier and TypeMethod and Description
protected Object
fromInput(Object
The object of type I to be converted to O
input
)

Implements abstract com.univocity.parsers.conversions.NullConversion.fromInput.

Creates an instance of O from a I object
protected Object
undo(Object
the input object to be converted to I
input
)

Implements abstract com.univocity.parsers.conversions.NullConversion.undo.

Converts a value of type O back to I.
Inherited from com.univocity.parsers.conversions.NullConversion:
executegetValueOnNullInputgetValueOnNullOutputrevertsetValueOnNullInputsetValueOnNullOutput

Constructor Detail

ToStringConversionback to summary
public ToStringConversion()
ToStringConversionback to summary
public ToStringConversion(Object valueOnNullInput, Object valueOnNullOutput)

Method Detail

fromInputback to summary
protected Object fromInput(Object input)

Implements abstract com.univocity.parsers.conversions.NullConversion.fromInput.

Doc from com.univocity.parsers.conversions.NullConversion.fromInput.

Creates an instance of O from a I object

Parameters
input:Object

The object of type I to be converted to O

Returns:Object

an instance of O, converted from the I input.

Annotations
@Override
undoback to summary
protected Object undo(Object input)

Implements abstract com.univocity.parsers.conversions.NullConversion.undo.

Doc from com.univocity.parsers.conversions.NullConversion.undo.

Converts a value of type O back to I.

Parameters
input:Object

the input object to be converted to I

Returns:Object

the conversion result

Annotations
@Override