public class YamlFileResourceOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
YamlFileResourceOptions.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
YamlFileResourceOptions(@Nullable Charset charset,
@Nullable ToIntFunction<PropertyPathTraverser.PathElement> numberOfLinesBeforeFunction,
int indentationSize,
boolean splitDotPaths)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static @NotNull YamlFileResourceOptions.Builder |
builder() |
@NotNull Charset |
getCharset() |
int |
getIndentationSize() |
protected @Nullable ToIntFunction<PropertyPathTraverser.PathElement> |
getIndentFunction() |
int |
getNumberOfEmptyLinesBefore(@NotNull PropertyPathTraverser.PathElement pathElement) |
boolean |
splitDotPaths() |
protected YamlFileResourceOptions(@Nullable
@Nullable Charset charset,
@Nullable
@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 paths@NotNull public static @NotNull YamlFileResourceOptions.Builder builder()
@NotNull public @NotNull Charset getCharset()
public int getNumberOfEmptyLinesBefore(@NotNull
@NotNull PropertyPathTraverser.PathElement pathElement)
public int getIndentationSize()
public boolean splitDotPaths()
@Nullable protected final @Nullable ToIntFunction<PropertyPathTraverser.PathElement> getIndentFunction()
Copyright © 2016–2023 The AuthMe Team. All rights reserved.