public final class Converters extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
convert(Class<T> clazz,
String value)
Converts the specified value to the destination type
|
static <T> StringConverter<T> |
getConverter(Class<T> clazz)
Gets the converter for the specified class.
|
public static <T> StringConverter<T> getConverter(Class<T> clazz)
T
- the target typeclazz
- the target classpublic static <T> T convert(Class<T> clazz, String value) throws ConvertException
T
- the target typeclazz
- the target classvalue
- the value to convertConvertException
- when the conversion failedCopyright © 1998-2016 Apache Software Foundation. All Rights Reserved.