| Constructor and Description |
|---|
TerminatedBlock(Block<?> previous,
Object value)
Creates a mapping with the same comments as the provided previous block, with the given value.
|
TerminatedBlock(org.snakeyaml.engine.v2.nodes.Node keyNode,
org.snakeyaml.engine.v2.nodes.Node valueNode,
Object value)
Creates a mapping using the given parameters; while storing references to comments from the given nodes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSection()
Returns if this block represents a
section. |
addComment, addComments, getComments, getStoredValue, init, isIgnored, removeComments, setComments, setIgnoredpublic TerminatedBlock(@Nullable
org.snakeyaml.engine.v2.nodes.Node keyNode,
@Nullable
org.snakeyaml.engine.v2.nodes.Node valueNode,
@Nullable
Object value)
keyNode - key node of the mappingvalueNode - value node of the mappingvalue - the value to storepublic TerminatedBlock(@Nullable
Block<?> previous,
@Nullable
Object value)
null, creates a mapping with no comments.previous - the previous block to reference comments fromvalue - the value to storeCopyright © 2022. All rights reserved.