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