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> String
getConvertedValue(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:ValueConverter
Specifies the list of value types this converter will accept. An empty list indicates this converter will accept ALL types- Specified by:
accepts
in interfaceValueConverter<String>
- Specified by:
accepts
in classAbstractJSONValueConverter<String>
- Returns:
- a list of class types
-
getConvertedValue
Description copied from class:AbstractJSONValueConverter
perform the value conversion and return the result- Specified by:
getConvertedValue
in classAbstractJSONValueConverter<String>
- Type Parameters:
V
- the value type- Parameters:
value
- the value- Returns:
- the converted value
- Throws:
JSONConversionException
- thrown if a conversion error occurs
-