Top Description Fields Constructors Methods
org.snakeyaml.engine.v2.nodes

public Class SequenceNode

extends CollectionNode<Node>
Class Inheritance
Imports
java.util.List, .Objects, .Optional, org.snakeyaml.engine.v2.common.FlowStyle, org.snakeyaml.engine.v2.exceptions.Mark

Represents a sequence.

A sequence is a ordered collection of nodes.

Field Summary

Modifier and TypeField and Description
private final List<Node>

Constructor Summary

AccessConstructor and Description
public
SequenceNode(Tag tag, boolean resolved, List<Node> value, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark)

public
SequenceNode(Tag tag, List<Node> value, FlowStyle flowStyle)

Method Summary

Modifier and TypeMethod and Description
public NodeType
public List<Node>

Returns:

Nodes in the specified order.
getValue
()

Implements abstract org.snakeyaml.engine.v2.nodes.CollectionNode.getValue.

Returns the elements in this sequence.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.snakeyaml.engine.v2.nodes.CollectionNode:
getFlowStylesetEndMarksetFlowStyle

Field Detail

valueback to summary
private final List<Node> value

Constructor Detail

SequenceNodeback to summary
public SequenceNode(Tag tag, boolean resolved, List<Node> value, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark)
SequenceNodeback to summary
public SequenceNode(Tag tag, List<Node> value, FlowStyle flowStyle)

Method Detail

getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.snakeyaml.engine.v2.nodes.Node.getNodeType.

Annotations
@Override
getValueback to summary
public List<Node> getValue()

Implements abstract org.snakeyaml.engine.v2.nodes.CollectionNode.getValue.

Returns the elements in this sequence.

Returns:List<Node>

Nodes in the specified order.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.