io.github.benas.easybatch.tutorials.products
Class OriginTypeConverter

java.lang.Object
  extended by io.github.benas.easybatch.tutorials.products.OriginTypeConverter
All Implemented Interfaces:
TypeConverter<Origin>

public class OriginTypeConverter
extends Object
implements TypeConverter<Origin>

Custom converter that convert string origin to a value of the Origin enumeration.

Author:
benas (md.benhassine@gmail.com)

Constructor Summary
OriginTypeConverter()
           
 
Method Summary
 Origin convert(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OriginTypeConverter

public OriginTypeConverter()
Method Detail

convert

public Origin convert(String value)
Specified by:
convert in interface TypeConverter<Origin>


Copyright © 2014. All Rights Reserved.