public class ConfigurationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <TProperty> |
convert(String value,
Class<TProperty> clazz)
Convert the specified string value to the property type.
|
public static <TProperty> TProperty convert(String value, Class<TProperty> clazz) throws ConfigurationException
TProperty
- the type of the propertyvalue
- the string valueclazz
- the class of the property (must not be null
)ConfigurationException
- when unable to convert the stringCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.