Interface ValueConverter<T>
- All Known Implementing Classes:
AbstractJSONValueConverter,NumberFormatJSONValueConverter,StringJSONValueConverter
public interface ValueConverter<T>
-
Method Summary
Modifier and Type Method Description Class<?>[]accepts()Specifies the list of value types this converter will accept.<V> TconvertValue(V value)static Optional<ValueConverter<?>>empty()String[]getArgs()
-
Method Details
-
accepts
Class<?>[] accepts()Specifies the list of value types this converter will accept. An empty list indicates this converter will accept ALL types- Returns:
- a list of class types
-
getArgs
String[] getArgs() -
convertValue
- Throws:
JSONConversionException
-
empty
-