public class ConfigUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
convertStringToObject(Class<T> type,
String value)
Converts string value of the corresponding type to object.
|
public static <T> T convertStringToObject(Class<T> type, String value) throws InvalidFormatException
For numeric types (int, long, double, float), this method supports both SI (decimal) and IEC (binary) unit prefixes as postfixes:
T - the target typetype - the target type to convert tovalue - the string value to convertInvalidFormatException - if value has wrong format.Copyright © 2002–2025 Devexperts LLC. All rights reserved.