public abstract class AbstractCommentedConfig extends AbstractConfig implements CommentedConfig
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractCommentedConfig.CommentedEntryWrapper |
AbstractConfig.EntryWrapperCommentedConfig.EntryUnmodifiableCommentedConfig.CommentNodemapCreator| Constructor and Description |
|---|
AbstractCommentedConfig(boolean concurrent) |
AbstractCommentedConfig(java.util.Map<java.lang.String,java.lang.Object> valuesMap)
Creates an AbstractCommentedConfig backed by the specified map
|
AbstractCommentedConfig(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> mapCreator) |
AbstractCommentedConfig(UnmodifiableCommentedConfig toCopy,
boolean concurrent)
Creates an AbstractCommentedConfig that is a copy of the specified config.
|
AbstractCommentedConfig(UnmodifiableCommentedConfig toCopy,
java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> mapCreator) |
AbstractCommentedConfig(UnmodifiableConfig toCopy,
boolean concurrent)
Creates an AbstractCommentedConfig that is a copy of the specified config.
|
AbstractCommentedConfig(UnmodifiableConfig toCopy,
java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> mapCreator) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all values from the config.
|
void |
clearComments()
Removes all the comments from the config.
|
abstract AbstractCommentedConfig |
clone()
Creates and return a copy of this config.
|
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 CommentedConfig.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.
|
protected static java.util.Map<java.lang.String,java.lang.String> |
getDefaultCommentMap(boolean concurrent) |
java.lang.String |
removeComment(java.util.List<java.lang.String> path)
Removes a comment from the config.
|
java.lang.String |
setComment(java.util.List<java.lang.String> path,
java.lang.String comment)
Sets a config comment.
|
add, contains, equals, getDefaultMapCreator, getRaw, getWildcardMapCreator, hashCode, isNull, remove, set, size, toString, valueMapfinalize, getClass, notify, notifyAll, wait, wait, waitchecked, concurrentCopy, concurrentCopy, concurrentCopy, concurrentCopy, copy, copy, copy, copy, copy, copy, copy, copy, createSubConfig, fake, inMemory, inMemoryConcurrent, of, of, ofConcurrent, putAllComments, putAllComments, removeComment, setComment, unmodifiable, wrapcontainsComment, fake, getComment, getComments, getComments, getOptionalComment, getOptionalCommentadd, add, addAll, getDefaultMapCreator, getDefaultMapCreator, inMemoryUniversal, inMemoryUniversalConcurrent, isInsertionOrderPreserved, of, of, ofConcurrent, putAll, remove, remove, removeAll, set, set, setInsertionOrderPreserved, update, update, valueMapapply, 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, sizepublic AbstractCommentedConfig(boolean concurrent)
public AbstractCommentedConfig(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> mapCreator)
public AbstractCommentedConfig(java.util.Map<java.lang.String,java.lang.Object> valuesMap)
valuesMap - the map containing the config's valuespublic AbstractCommentedConfig(UnmodifiableConfig toCopy, boolean concurrent)
toCopy - the config to copypublic AbstractCommentedConfig(UnmodifiableConfig toCopy, java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> mapCreator)
public AbstractCommentedConfig(UnmodifiableCommentedConfig toCopy, boolean concurrent)
toCopy - the config to copypublic AbstractCommentedConfig(UnmodifiableCommentedConfig toCopy, java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> mapCreator)
protected static java.util.Map<java.lang.String,java.lang.String> getDefaultCommentMap(boolean concurrent)
public 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 java.lang.String setComment(java.util.List<java.lang.String> path,
java.lang.String comment)
CommentedConfigsetComment in interface CommentedConfigpath - the comment's path, each element of the list is a different part of the path.comment - the comment to setnullpublic java.lang.String removeComment(java.util.List<java.lang.String> path)
CommentedConfigremoveComment in interface CommentedConfigpath - the comment's path, each element of the list is a different part of the path.nullpublic 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,java.lang.String> commentMap()
CommentedConfigThe comment map contains only the comments of the direct elements of the configuration, not the comments of their sub-elements.
commentMap in interface CommentedConfigcommentMap in interface UnmodifiableCommentedConfigpublic java.util.Set<? extends CommentedConfig.Entry> entrySet()
ConfigentrySet in interface CommentedConfigentrySet in interface ConfigentrySet in interface UnmodifiableCommentedConfigentrySet in interface UnmodifiableConfigentrySet in class AbstractConfigpublic abstract AbstractCommentedConfig clone()
AbstractConfigclone in class AbstractConfigpublic void clear()
Configclear in interface Configclear in class AbstractConfigpublic void clearComments()
CommentedConfigclearComments in interface CommentedConfig