public static class FormatterConfig.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FormatterConfig |
build() |
<T> FormatterConfig.Builder |
setFormatter(Class<T> dtoClass,
Formatter<T> formatter) |
FormatterConfig.Builder |
setIndent(String indent)
Set indent value for pretty printing.
|
FormatterConfig.Builder |
setPrettyPrintFields(boolean prettyPrintFields)
When false - each field will be written as one line, even if pretty printing of schema is set to true.
|
FormatterConfig.Builder |
setPrettyPrintSchema(boolean prettyPrintSchema)
False - to print schema in one line, true - to print it nicely formatted.
|
public <T> FormatterConfig.Builder setFormatter(Class<T> dtoClass, Formatter<T> formatter)
public FormatterConfig.Builder setPrettyPrintSchema(boolean prettyPrintSchema)
public FormatterConfig.Builder setPrettyPrintFields(boolean prettyPrintFields)
public FormatterConfig.Builder setIndent(String indent)
public FormatterConfig build()
Copyright © 2021. All rights reserved.