-
Methods in org.ghotibeaun.json.converters with parameters of type ConverterOption
Modifier and Type |
Method |
Description |
static <T> T |
Converters.convertToClass(Class<T> targetClass,
JSONObject jsonObject,
ConverterOption<?>... options) |
Convert a JSONObject into a Class instance
|
static <T> JSONNode |
Converters.convertToJSON(T source,
ConverterOption<?>... options) |
Convert an object to a JSONNode
|
static JSONArray |
Converters.convertToJSONArray(List<?> source,
Class<?> targetClass,
ConverterOption<?>... options) |
|
static JSONArray |
Converters.convertToJSONArray(List<?> source,
Optional<ValueConverter<?>> valueConverter,
Optional<Class<?>> targetClass,
ConverterOption<?>... options) |
|
static JSONArray |
Converters.convertToJSONArray(List<?> source,
ConverterOption<?>... options) |
|
static JSONArray |
Converters.convertToJSONArray(List<?> source,
ValueConverter<?> valueConverter,
ConverterOption<?>... options) |
|
static JSONObject |
Converters.convertToJSONObject(Map<String,?> source,
Class<?> targetClass,
ConverterOption<?>... options) |
Convert a Map to a JSONObject.
|
static JSONObject |
Converters.convertToJSONObject(Map<String,?> source,
Optional<ValueConverter<?>> valueConverter,
Optional<Class<?>> targetClass,
ConverterOption<?>... options) |
Convert a Map to a JSONObject.
|
static JSONObject |
Converters.convertToJSONObject(Map<String,?> source,
ConverterOption<?>... options) |
Convert a Map to a JSONObject.
|
static JSONObject |
Converters.convertToJSONObject(Map<String,?> source,
ValueConverter<?> converter,
ConverterOption<?>... options) |
Convert a Map to a JSONObject.
|
static <T> JSONObject |
Converters.convertToJSONObject(T source,
ConverterOption<?>... options) |
Convert to a JSONObject
|
static JSONValue<?> |
Converters.convertToJSONValue(Object value,
Optional<ValueConverter<?>> valueConverter,
Optional<Class<?>> targetClass,
ConverterOption<?>... options) |
|
static <T> List<T> |
Converters.convertToList(Class<T> targetClass,
JSONArray jsonArray,
Optional<ValueConverter<?>> valueConverter,
ConverterOption<?>... options) |
Deprecated.
|
static <T> List<T> |
Converters.convertToList(JSONArray array,
Optional<ValueConverter<?>> valueConverter,
Optional<Class<?>> targetClass,
ConverterOption<?>... options) |
|
static <T> T |
Converters.convertValue(JSONValue<?> value,
Optional<ValueConverter<?>> valueConverter,
Optional<Class<?>> targetClass,
ConverterOption<?>... options) |
|
static ClassConverter |
AbstractClassConverter.getClassConverter(ConverterOption<?>... option) |
Returns the ClassConverter implementation.
|
static JSONConverter |
AbstractJSONConverter.getJSONConverter(ConverterOption<?>... options) |
|
void |
ConverterOptions.set(ConverterOption<?> option) |
|
-
-