public class YamlFileResourceOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
YamlFileResourceOptions.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
YamlFileResourceOptions(Charset charset,
ToIntFunction<PropertyPathTraverser.PathElement> numberOfLinesBeforeFunction,
int indentationSize,
boolean splitDotPaths)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static YamlFileResourceOptions.Builder |
builder() |
Charset |
getCharset() |
String |
getIndentation() |
int |
getIndentationSize() |
protected ToIntFunction<PropertyPathTraverser.PathElement> |
getIndentFunction() |
int |
getNumberOfEmptyLinesBefore(PropertyPathTraverser.PathElement pathElement) |
boolean |
splitDotPaths() |
protected YamlFileResourceOptions(@Nullable Charset charset, @Nullable ToIntFunction<PropertyPathTraverser.PathElement> numberOfLinesBeforeFunction, int indentationSize, boolean splitDotPaths)
builder() to instantiate option objects.charset - the charsetnumberOfLinesBeforeFunction - function defining how many lines before a path element should be in the exportindentationSize - number of spaces to use for each level of indentationsplitDotPaths - whether compound keys (keys with ".") should be split into nested pathspublic static YamlFileResourceOptions.Builder builder()
public Charset getCharset()
public int getNumberOfEmptyLinesBefore(PropertyPathTraverser.PathElement pathElement)
public int getIndentationSize()
public boolean splitDotPaths()
public String getIndentation()
@Nullable protected final ToIntFunction<PropertyPathTraverser.PathElement> getIndentFunction()
Copyright © 2016–2021 The AuthMe Team. All rights reserved.