Class UnmodifiableCommentedConfig.CommentNode
- java.lang.Object
-
- com.electronwill.nightconfig.core.UnmodifiableCommentedConfig.CommentNode
-
- Enclosing interface:
- UnmodifiableCommentedConfig
public static final class UnmodifiableCommentedConfig.CommentNode extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommentNode(java.lang.String comment, java.util.Map<java.lang.String,UnmodifiableCommentedConfig.CommentNode> children)Creates a new CommentNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,UnmodifiableCommentedConfig.CommentNode>getChildren()java.lang.StringgetComment()
-
-
-
Constructor Detail
-
CommentNode
public CommentNode(java.lang.String comment, java.util.Map<java.lang.String,UnmodifiableCommentedConfig.CommentNode> children)Creates a new CommentNode.Note: The comment and children are never both null.
- Parameters:
comment- the comment, may be nullchildren- the children Map, may be null
-
-
Method Detail
-
getComment
public java.lang.String getComment()
- Returns:
- the node's comment
-
getChildren
public java.util.Map<java.lang.String,UnmodifiableCommentedConfig.CommentNode> getChildren()
- Returns:
- the Map of the node's children
-
-