public class JsonUtil extends Object
| Constructor and Description |
|---|
JsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
cache(File file,
Class<T> clazz,
java.util.function.Supplier<T> intializer) |
static double[] |
getDoubleArray(com.google.gson.JsonArray array) |
static int[] |
getIntArray(com.google.gson.JsonArray array) |
static com.google.gson.JsonArray |
getJson(double[] kernelDims) |
static com.google.gson.JsonArray |
getJson(int[] kernelDims) |
static com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
static com.google.gson.JsonArray |
toIntArray(int[] array) |
static int[] |
toIntArray(com.google.gson.JsonArray array) |
static CharSequence |
toJson(Object obj) |
static CharSequence |
toJson(Object obj,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
public static double[] getDoubleArray(@Nonnull com.google.gson.JsonArray array)
public static CharSequence toJson(Object obj)
@Nonnull public static CharSequence toJson(Object obj, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public static com.fasterxml.jackson.databind.ObjectMapper getMapper()
public static <T> T cache(File file, Class<T> clazz, java.util.function.Supplier<T> intializer) throws IOException
IOExceptionpublic static int[] toIntArray(com.google.gson.JsonArray array)
public static com.google.gson.JsonArray toIntArray(int[] array)
Copyright © 2019 SimiaCryptus Software. All rights reserved.