S - the style type of the nodeV - the value typepublic interface Formatter<S,V>
| Modifier and Type | Method and Description |
|---|---|
S |
format(org.snakeyaml.engine.v2.nodes.Tag tag,
V value,
NodeRole role,
S def)
Returns the format to use for the given node.
|
static <S,V> Formatter<S,V> |
identity()
Returns a formatter which returns the default style, as given to the method (as configured by the respective
setting).
|
@NotNull S format(@NotNull org.snakeyaml.engine.v2.nodes.Tag tag, @NotNull V value, @NotNull NodeRole role, @NotNull S def)
Please note that the returned style might be overridden in order to produce output compliant with the YAML specification. Please learn more at the corresponding setting documentation.
tag - the actual datatype the node is representingvalue - value of the node (for scalars, this is a string-based representation)role - role of the nodedef - the default style (as configured by the respective setting)@NotNull static <S,V> Formatter<S,V> identity()
S - the style type of the nodeV - the value typeCopyright © 2024. All rights reserved.