org.modelmapper
Class AbstractConverter<S,D>

java.lang.Object
  extended by org.modelmapper.AbstractConverter<S,D>
Type Parameters:
S - source type
D - destination type
All Implemented Interfaces:
Converter<S,D>

public abstract class AbstractConverter<S,D>
extends Object
implements Converter<S,D>

Converter support class. Allows for simpler Converter implementations.

Author:
Jonathan Halterman

Constructor Summary
AbstractConverter()
           
 
Method Summary
 D convert(MappingContext<S,D> context)
          Delegates conversion to convert(Object).
protected abstract  D convert(S source)
          Converts source to an instance of type D.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConverter

public AbstractConverter()
Method Detail

convert

public D convert(MappingContext<S,D> context)
Delegates conversion to convert(Object).

Specified by:
convert in interface Converter<S,D>
Parameters:
context - of current mapping process

convert

protected abstract D convert(S source)
Converts source to an instance of type D.



Copyright © 2011. All Rights Reserved.