public class YamlUtil extends Object
| Constructor and Description |
|---|
YamlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
relativePathToList(String relativePath,
com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference) |
static <T> T |
relativePathToObject(String relativePath,
Class<T> type) |
static <T> T |
relativePathToRefer(String relativePath,
com.fasterxml.jackson.core.type.TypeReference<T> reference) |
static <T> List<T> |
toList(String yaml,
com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference) |
static <T> List<T> |
toList(URL yaml,
com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference) |
static <T> T |
toObject(String yaml,
Class<T> type) |
static <T> T |
toObject(URL yaml,
Class<T> type) |
static <T> T |
toRefer(String yaml,
com.fasterxml.jackson.core.type.TypeReference<T> reference) |
static <T> T |
toRefer(URL yaml,
com.fasterxml.jackson.core.type.TypeReference<T> reference) |
static String |
toYaml(Object o) |
public static <T> T relativePathToRefer(String relativePath, com.fasterxml.jackson.core.type.TypeReference<T> reference)
public static <T> List<T> relativePathToList(String relativePath, com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference)
public static <T> T toRefer(URL yaml, com.fasterxml.jackson.core.type.TypeReference<T> reference)
public static <T> List<T> toList(URL yaml, com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference)
public static <T> T toRefer(String yaml, com.fasterxml.jackson.core.type.TypeReference<T> reference)
Copyright © 2021 Shoothzj. All rights reserved.