Class YamlUtil

java.lang.Object
com.github.shoothzj.javatool.util.YamlUtil

public class YamlUtil extends Object
Author:
akka
  • Constructor Details

    • YamlUtil

      public YamlUtil()
  • Method Details

    • toYaml

      public static String toYaml(Object o)
    • relativePathToObject

      public static <T> T relativePathToObject(String relativePath, Class<T> type)
    • relativePathToRefer

      public static <T> T relativePathToRefer(String relativePath, com.fasterxml.jackson.core.type.TypeReference<T> reference)
    • relativePathToList

      public static <T> List<T> relativePathToList(String relativePath, com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference)
    • toObject

      public static <T> T toObject(URL yaml, Class<T> type)
    • toRefer

      public static <T> T toRefer(URL yaml, com.fasterxml.jackson.core.type.TypeReference<T> reference)
    • toList

      public static <T> List<T> toList(URL yaml, com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference)
    • toObject

      public static <T> T toObject(String yaml, Class<T> type)
    • toRefer

      public static <T> T toRefer(String yaml, com.fasterxml.jackson.core.type.TypeReference<T> reference)
    • toList

      public static <T> List<T> toList(String yaml, com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference)