com.univocity.parsers.conversions
Interface Conversion<I,O>

Type Parameters:
I - The input type to be converted to the output type O
O - The type of outputs produced by a conversion applied to the an input I
All Known Implementing Classes:
BigDecimalConversion, BigIntegerConversion, BooleanConversion, ByteConversion, CalendarConversion, CharacterConversion, DateConversion, DoubleConversion, FloatConversion, FormattedBigDecimalConversion, IntegerConversion, LongConversion, LowerCaseConversion, NullStringConversion, NumericConversion, ObjectConversion, RegexConversion, ShortConversion, TrimConversion, UpperCaseConversion

public interface Conversion<I,O>

The interface that defines the conversion from one type of value to another, and vice versa. uniVocity-parsers provides a set of default conversions for usage with ObjectRowProcessor and ObjectRowWriterProcessor. Annotations in package com.univocity.parsers.annotations are associated to different Conversion implementations in com.univocity.parsers.conversions.

Author:
uniVocity Software Pty Ltd - [email protected]
See Also:
ObjectRowProcessor, ObjectRowWriterProcessor

Method Summary
 O execute(I input)
          Converts a value of type I to a value of type O
 I revert(O input)
          Converts a value of type O to a value of type I
 

Method Detail

execute

O execute(I input)
Converts a value of type I to a value of type O

Parameters:
input - the input of type I to be converted to an object of type O
Returns:
the conversion result.

revert

I revert(O input)
Converts a value of type O to a value of type I

Parameters:
input - the input of type O to be converted to an object of type I
Returns:
the conversion result


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