Package org.apache.jmeter.report.core
Class Converters
java.lang.Object
org.apache.jmeter.report.core.Converters
The class Converters provides converters of string.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TConverts the specified value to the destination typestatic <T> StringConverter<T>getConverter(Class<T> clazz) Gets the converter for the specified class.
-
Method Details
-
getConverter
Gets the converter for the specified class.- Type Parameters:
T- the target type- Parameters:
clazz- the target class- Returns:
- the converter
-
convert
Converts the specified value to the destination type- Type Parameters:
T- the target type- Parameters:
clazz- the target classvalue- the value to convert- Returns:
- the converted value
- Throws:
ConvertException- when the conversion failed
-