public class SimpleMapper<T> extends Object implements Mapper<T,T>
| Constructor and Description |
|---|
SimpleMapper(Class<T> expectedType) |
| Modifier and Type | Method and Description |
|---|---|
T |
convertObject(MapperContext<T,T> context)
Convert object from one type to expected type
|
Class<T> |
getExpectedReturnType() |
Class<? extends T> |
getTypeOfObjectToConvert() |
public T convertObject(MapperContext<T,T> context)
MapperconvertObject in interface Mapper<T,T>context - Encapsulates reference to converted object and other things, which might be helpful in conversionpublic Class<? extends T> getTypeOfObjectToConvert()
getTypeOfObjectToConvert in interface Mapper<T,T>Copyright © 2016 JBoss by Red Hat. All rights reserved.