Package org.spongepowered.configurate
Interface CommentedConfigurationNodeIntermediary<N extends CommentedConfigurationNodeIntermediary<N>>
- Type Parameters:
- N- self type
- All Superinterfaces:
- ConfigurationNode,- ScopedConfigurationNode<N>
- All Known Subinterfaces:
- AttributedConfigurationNode,- CommentedConfigurationNode
public interface CommentedConfigurationNodeIntermediary<N extends CommentedConfigurationNodeIntermediary<N>>
extends ScopedConfigurationNode<N>
Intermediate interface for different types of commented configuration nodes.
- Since:
- 4.0.0
- 
Field SummaryFields inherited from interface org.spongepowered.configurate.ConfigurationNodeNUMBER_DEF
- 
Method SummaryMethods inherited from interface org.spongepowered.configurate.ConfigurationNodeempty, get, get, get, get, get, get, get, get, get, get, get, get, getBoolean, getBoolean, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getList, getList, getList, getList, getList, getList, getLong, getLong, getString, getString, hasChild, hasChild, hint, isList, isMap, isNull, key, options, ownHint, ownHints, path, raw, rawScalar, removeChild, require, require, require, virtual, visit, visit, visit, visitMethods inherited from interface org.spongepowered.configurate.ScopedConfigurationNodeact, appendListNode, childrenList, childrenMap, copy, from, hint, mergeFrom, node, node, parent, raw, self, set, set, set, set, set, setList, setList, toListCollector, toListCollector, toMapCollector, toMapCollector
- 
Method Details- 
commentGets the current value for the comment.If the comment contains multiple lines, the lines will be split by \n - Returns:
- the configuration's current comment
- Since:
- 4.0.0
 
- 
commentSets the comment for this configuration node.- Parameters:
- comment- the comment to set. Line breaks should be represented as LFs (\n)
- Returns:
- this node
- Since:
- 4.0.0
 
- 
commentIfAbsentSet a comment on this node if it does not presently have a comment.The provided comment must not be null, because setting a null comment would be a no-op - Parameters:
- comment- the comment to set. Line breaks should be represented as LFs (\n)
- Returns:
- this node
- Since:
- 4.0.0
 
 
-