public final class FakeUnmodifiableCommentedConfig extends UnmodifiableConfigWrapper<UnmodifiableConfig> implements UnmodifiableCommentedConfig
UnmodifiableCommentedConfig.CommentNode, UnmodifiableCommentedConfig.Entryconfig| Constructor and Description |
|---|
FakeUnmodifiableCommentedConfig(UnmodifiableConfig config)
Creates a FakeUnmodifiableCommentedConfig that gets all its values from the given config.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
commentMap()
Returns a Map view of the config's comments.
|
boolean |
containsComment(java.util.List<java.lang.String> path)
Checks if the config contains a comment at some path.
|
java.util.Set<? extends UnmodifiableCommentedConfig.Entry> |
entrySet()
Returns a Set view of the config's entries.
|
java.lang.String |
getComment(java.util.List<java.lang.String> path)
Gets a comment from the config.
|
java.util.Map<java.lang.String,UnmodifiableCommentedConfig.CommentNode> |
getComments()
Returns a Map containing a deep copy of all the comments in the config.
|
configFormat, contains, equals, getRaw, hashCode, isEmpty, size, valueMapclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcontainsComment, fake, getComment, getComments, getOptionalComment, getOptionalCommentapply, apply, configFormat, contains, contains, get, get, getByte, getByte, getByteOrElse, getByteOrElse, getChar, getChar, getCharOrElse, getCharOrElse, getEnum, getEnum, getEnum, getEnum, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getInt, getInt, getIntOrElse, getIntOrElse, getIntOrElse, getIntOrElse, getLong, getLong, getLongOrElse, getLongOrElse, getLongOrElse, getLongOrElse, getOptional, getOptional, getOptionalEnum, getOptionalEnum, getOptionalEnum, getOptionalEnum, getOptionalInt, getOptionalInt, getOptionalLong, getOptionalLong, getOrElse, getOrElse, getOrElse, getOrElse, getRaw, getRaw, getShort, getShort, getShortOrElse, getShortOrElse, isEmpty, isNull, isNull, size, valueMappublic FakeUnmodifiableCommentedConfig(UnmodifiableConfig config)
config - the config to use for the valuespublic java.lang.String getComment(java.util.List<java.lang.String> path)
UnmodifiableCommentedConfiggetComment in interface UnmodifiableCommentedConfigpath - the comment's path, each element of the list is a different part of the path.null if there is none.public boolean containsComment(java.util.List<java.lang.String> path)
UnmodifiableCommentedConfigcontainsComment in interface UnmodifiableCommentedConfigpath - the path to check, each element of the list is a different part of the path.true if the path is associated with a comment, false if it's not.public java.util.Map<java.lang.String,UnmodifiableCommentedConfig.CommentNode> getComments()
UnmodifiableCommentedConfiggetComments in interface UnmodifiableCommentedConfigpublic java.util.Map<java.lang.String,java.lang.String> commentMap()
UnmodifiableCommentedConfigThe comment map contains only the comments of the direct elements of the configuration, not the comments of their sub-elements.
commentMap in interface UnmodifiableCommentedConfigpublic java.util.Set<? extends UnmodifiableCommentedConfig.Entry> entrySet()
UnmodifiableConfigentrySet in interface UnmodifiableCommentedConfigentrySet in interface UnmodifiableConfigentrySet in class UnmodifiableConfigWrapper<UnmodifiableConfig>