| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Type targetType,
Object sourceValue)
Convert provided value into the provided target type.
|
default <T> Converter<T> |
getConverter(Type targetType) |
<T> T convert(Type targetType, Object sourceValue)
T - the type in which the provided value has to be convertedtargetType - the type in which the provided value has to be convertedsourceValue - the value to convertdefault <T> Converter<T> getConverter(Type targetType)
T - the type in which the provided value has to be convertedtargetType - the type for which the converter has been registeredCopyright © 2004–2017 XWiki. All rights reserved.