Class YamlUtil
java.lang.Object
com.github.shoothzj.javatool.util.YamlUtil
- Author:
- akka
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T>relativePathToList(String relativePath, com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference) static <T> TrelativePathToObject(String relativePath, Class<T> type) static <T> TrelativePathToRefer(String relativePath, com.fasterxml.jackson.core.type.TypeReference<T> reference) static <T> List<T>static <T> List<T>static <T> Tstatic <T> Tstatic <T> Tstatic <T> Tstatic String
-
Constructor Details
-
YamlUtil
public YamlUtil()
-
-
Method Details
-
toYaml
-
relativePathToObject
-
relativePathToRefer
public static <T> T relativePathToRefer(String relativePath, com.fasterxml.jackson.core.type.TypeReference<T> reference) -
relativePathToList
-
toObject
-
toRefer
-
toList
-
toObject
-
toRefer
public static <T> T toRefer(String yaml, com.fasterxml.jackson.core.type.TypeReference<T> reference) -
toList
-