Package com.amihaiemil.eoyaml
Interface YamlSequenceBuilder
-
public interface YamlSequenceBuilderBuilder of YamlSequence. Implementations should be immutable and thread-safe.- Since:
- 1.0.0
- Version:
- $Id: 8f41be132072bc442d4c890d977e3da700cb0fd7 $
- Author:
- Salavat.Yalalov (s.yalalov@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description YamlSequenceBuilderadd(YamlNode node)Add a value to the sequence.YamlSequenceBuilderadd(String value)Add a value to the sequence.default YamlSequencebuild()Build the YamlSequence.YamlSequencebuild(String comment)Build the YamlSequence and specify a comment referring to it.
-
-
-
Method Detail
-
add
YamlSequenceBuilder add(String value)
Add a value to the sequence.- Parameters:
value- String- Returns:
- This builder
-
add
YamlSequenceBuilder add(YamlNode node)
Add a value to the sequence.- Parameters:
node- YamlNode- Returns:
- This builder
-
build
default YamlSequence build()
Build the YamlSequence.- Returns:
- Built YamlSequence
-
build
YamlSequence build(String comment)
Build the YamlSequence and specify a comment referring to it.- Parameters:
comment- Comment about the built YamlSequence.- Returns:
- Built YamlSequence
-
-