| Modifier and Type | Method and Description |
|---|---|
void |
addConverter(Class<?> from,
Class<?> to,
Converter converter)
Converter calls this method to register conversion path.
|
Object |
convert(Class<?> targetType,
Object value)
Do Conversion.
|
Converter |
getConverter(Class<?> from,
Class<?> to)
Get the desired converter.
|
static ConverterRegistry |
instance()
Get the instance.
|
public void addConverter(Class<?> from, Class<?> to, Converter converter)
addConverter in interface Registryfrom - to - converter - public Converter getConverter(Class<?> from, Class<?> to)
getConverter in interface Registryfrom - to - public Object convert(Class<?> targetType, Object value)
targetType - value - public static ConverterRegistry instance()
Copyright © 2017. All rights reserved.