Class NumberFormatJSONValueConverter
java.lang.Object
org.ghotibeaun.json.converters.valueconverter.AbstractJSONValueConverter<String>
org.ghotibeaun.json.converters.valueconverter.NumberFormatJSONValueConverter
- All Implemented Interfaces:
ValueConverter<String>
public class NumberFormatJSONValueConverter extends AbstractJSONValueConverter<String>
-
Constructor Summary
Constructors Constructor Description NumberFormatJSONValueConverter(String... args) -
Method Summary
Modifier and Type Method Description Class<?>[]accepts()Specifies the list of value types this converter will accept.<V> StringgetConvertedValue(V value)perform the value conversion and return the resultMethods inherited from class org.ghotibeaun.json.converters.valueconverter.AbstractJSONValueConverter
accept, convertValue, getAcceptedClassList, getArg, getArgs, getInvalidMessage
-
Constructor Details
-
NumberFormatJSONValueConverter
-
-
Method Details
-
accepts
Description copied from interface:ValueConverterSpecifies the list of value types this converter will accept. An empty list indicates this converter will accept ALL types- Specified by:
acceptsin interfaceValueConverter<String>- Specified by:
acceptsin classAbstractJSONValueConverter<String>- Returns:
- a list of class types
-
getConvertedValue
Description copied from class:AbstractJSONValueConverterperform the value conversion and return the result- Specified by:
getConvertedValuein classAbstractJSONValueConverter<String>- Type Parameters:
V- the value type- Parameters:
value- the value- Returns:
- the converted value
- Throws:
JSONConversionException- thrown if a conversion error occurs
-