Interface ConfigNode.ListNode.Builder
- All Superinterfaces:
Builder<ConfigNode.ListNode.Builder, ConfigNode.ListNode>, Supplier<ConfigNode.ListNode>
- All Known Implementing Classes:
ListNodeBuilderImpl
- Enclosing interface:
ConfigNode.ListNode
public static interface ConfigNode.ListNode.Builder
extends Builder<ConfigNode.ListNode.Builder, ConfigNode.ListNode>
Builder to build
ConfigNode.ListNode instance.-
Method Summary
Modifier and TypeMethodDescriptionaddList(ConfigNode.ListNode list) Adds List node to the list.addObject(ConfigNode.ObjectNode object) Adds Object node to the list.addValue(ConfigNode.ValueNode value) Adds String value to the list.default ConfigNode.ListNode.BuilderAdds String value to the list.Sets the node value associated with the current node.Methods inherited from interface Builder
build, get, identity, updateModifier and TypeMethodDescriptionbuild()Build the instance from this builder.default ConfigNode.ListNodeget()default ConfigNode.ListNode.Builderidentity()Instance of this builder as the correct type.default ConfigNode.ListNode.Builderupdate(Consumer<ConfigNode.ListNode.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
addValue
Adds String value to the list.- Parameters:
value- string value- Returns:
- modified builder
-
addValue
Adds String value to the list.- Parameters:
value- string value- Returns:
- modified builder
-
addObject
Adds Object node to the list.- Parameters:
object- object node- Returns:
- modified builder
-
addList
Adds List node to the list.- Parameters:
list- list node- Returns:
- modified builder
-
value
Sets the node value associated with the current node.- Parameters:
value- value to be assigned- Returns:
- modified builder
-