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