public final class JsonStringNode extends Object
| 构造器和说明 |
|---|
JsonStringNode(Supplier<String> supplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
compactString()
Produces a json string in a compact format.
|
static JsonStringNode |
of(String value)
Creates a JsonStringNode with a given string value.
|
String |
prettyString(int indentation)
Produces a json string with indentations.
|
protected Supplier<T> supplier
public static JsonStringNode of(String value)
value - the string value to be convertedpublic String compactString()
JsonNodepublic final String prettyString(int indentation)
JsonNodeprettyString 在接口中 JsonNodeindentation - the amount of indentationsCopyright © 2019. All rights reserved.