public static final class StampedConfig.Accumulator extends AbstractCommentedConfig
StampedConfig.replaceContentBy(Accumulator).
It is NOT thread-safe.
Example:
StampedConfig config = new StampedConfig(configFormat, mapSupplier);
Accumulator acc = config.newAccumulator();
// parse a file into the accumulator, the StampedConfig is not locked
configParser.parse(file, acc);
// atomically replace the config's content with the accumulator's
config.replaceContentBy(acc);
AbstractCommentedConfig.CommentedEntryWrapperAbstractConfig.EntryWrapperCommentedConfig.EntryUnmodifiableCommentedConfig.CommentNodecommentMapmap, mapCreator| Modifier and Type | Method and Description |
|---|---|
AbstractCommentedConfig |
clone()
Creates and return a copy of this config.
|
ConfigFormat<?> |
configFormat()
Returns the config's format.
|
CommentedConfig |
createSubConfig()
Creates a new sub config of this config, as created when a subconfig's creation is
implied by
Config.set(List, Object) or Config.add(List, Object). |
clear, clearComments, commentMap, containsComment, entrySet, getComment, getDefaultCommentMap, removeComment, setCommentadd, 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, 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, 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 clone()
AbstractConfigclone in class AbstractCommentedConfigpublic CommentedConfig createSubConfig()
ConfigConfig.set(List, Object) or Config.add(List, Object).public ConfigFormat<?> configFormat()
UnmodifiableConfig