ma.glasnost.orika.converter.builtin
Class WrapperToPrimitiveConverter
java.lang.Object
ma.glasnost.orika.CustomConverter<Object,Object>
ma.glasnost.orika.converter.builtin.WrapperToPrimitiveConverter
- All Implemented Interfaces:
- Converter<Object,Object>, MappedTypePair<Object,Object>
public class WrapperToPrimitiveConverter
- extends CustomConverter<Object,Object>
- Author:
- matt.deboer@gmail.com
|
Method Summary |
boolean |
canConvert(Type<?> sourceType,
Type<?> destinationType)
Answers whether this converter can be used to handle the conversion of sourceType
to destinationType. |
Object |
convert(Object source,
Type<? extends Object> destinationType)
Perform the conversion of source into a new instance of
destinationType. |
WrapperToPrimitiveConverter
public WrapperToPrimitiveConverter()
canConvert
public boolean canConvert(Type<?> sourceType,
Type<?> destinationType)
- Description copied from interface:
Converter
- Answers whether this converter can be used to handle the conversion of
sourceType
to destinationType.
- Specified by:
canConvert in interface Converter<Object,Object>- Overrides:
canConvert in class CustomConverter<Object,Object>
- Returns:
convert
public Object convert(Object source,
Type<? extends Object> destinationType)
- Description copied from interface:
Converter
- Perform the conversion of
source into a new instance of
destinationType.
- Parameters:
source - the source object to be converteddestinationType - the destination type to produce
- Returns:
- a new instance of
destinationType
Copyright © 2013 Glasnost. All Rights Reserved.