public interface ConversionService extends Converter<Object,Object>
| Modifier and Type | Method and Description |
|---|---|
<I,O,T extends Converter<I,O>> |
converterByType(Class<T> converterType)
Search for converter of specified type.
|
<SrcType,DstType> |
converterFor(Class<SrcType> srcType,
Class<DstType> dstType)
Lookup exact converter for the specified raw types.
|
<I,O> O |
convertType(I src,
TypeInfo<I> srcType,
TypeInfo<O> dstType)
Convert source value of specified type to value of destination type
|
<I,O> O convertType(I src,
TypeInfo<I> srcType,
TypeInfo<O> dstType)
throws ConversionException
src - source valuesrcType - extended source typedstType - destination typeConversionException<I,O,T extends Converter<I,O>> T converterByType(Class<T> converterType)
I - type of the source what converter supportsconverterType - exact type of the requested convertertype - of the destination what converter supports<SrcType,DstType> Converter<SrcType,DstType> converterFor(Class<SrcType> srcType, Class<DstType> dstType)
srcType - source typedstType - destination typeCopyright © 2016. All rights reserved.