public class DefaultConfigUtil
extends java.lang.Object
Constructor and Description |
---|
DefaultConfigUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
loadConfig(java.nio.file.Path directory,
java.lang.String name,
com.google.gson.Gson gson,
T defaultValue,
java.util.function.BiConsumer<T,com.google.gson.stream.JsonWriter> write,
java.util.function.Function<java.io.BufferedReader,T> read) |
public static <T> T loadConfig(java.nio.file.Path directory, java.lang.String name, com.google.gson.Gson gson, T defaultValue, java.util.function.BiConsumer<T,com.google.gson.stream.JsonWriter> write, java.util.function.Function<java.io.BufferedReader,T> read) throws java.io.IOException
java.io.IOException