org.modelmapper
Class AbstractConverter<S,D>
java.lang.Object
org.modelmapper.AbstractConverter<S,D>
- Type Parameters:
S
- source typeD
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConverter
public AbstractConverter()
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.