public interface CommentedFileConfig extends CommentedConfig, FileConfig
CommentedConfig.EntryUnmodifiableCommentedConfig.CommentNode| Modifier and Type | Method and Description |
|---|---|
static CommentedFileConfigBuilder |
builder(java.io.File file)
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
|
static CommentedFileConfigBuilder |
builder(java.io.File file,
ConfigFormat<? extends CommentedConfig> format)
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
|
static CommentedFileConfigBuilder |
builder(java.nio.file.Path file)
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
|
static CommentedFileConfigBuilder |
builder(java.nio.file.Path file,
ConfigFormat<? extends CommentedConfig> format)
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
|
static CommentedFileConfigBuilder |
builder(java.lang.String filePath)
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
|
static CommentedFileConfigBuilder |
builder(java.lang.String filePath,
ConfigFormat<? extends CommentedConfig> format)
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
|
default CommentedFileConfig |
checked()
Returns a checked view of the config.
|
static CommentedFileConfig |
of(java.io.File file)
Creates a new FileConfig based on the specified file and format.
|
static CommentedFileConfig |
of(java.io.File file,
ConfigFormat<? extends CommentedConfig> format)
Creates a new FileConfig based on the specified file and format.
|
static CommentedFileConfig |
of(java.nio.file.Path file)
Creates a new FileConfig based on the specified file and format.
|
static CommentedFileConfig |
of(java.nio.file.Path file,
ConfigFormat<? extends CommentedConfig> format)
Creates a new FileConfig based on the specified file and format.
|
static CommentedFileConfig |
of(java.lang.String filePath)
Creates a new FileConfig based on the specified file and format.
|
static CommentedFileConfig |
of(java.lang.String filePath,
ConfigFormat<? extends CommentedConfig> format)
Creates a new FileConfig based on the specified file and format.
|
static CommentedFileConfig |
ofConcurrent(java.io.File file)
Creates a new thread-safe CommentedFileConfig based on the specified file and format.
|
static CommentedFileConfig |
ofConcurrent(java.io.File file,
ConfigFormat<? extends CommentedConfig> format)
Creates a new trhead-safe CommentedFileConfig based on the specified file and format.
|
static CommentedFileConfig |
ofConcurrent(java.nio.file.Path file)
Creates a new thread-safe CommentedFileConfig based on the specified file and format.
|
static CommentedFileConfig |
ofConcurrent(java.nio.file.Path file,
ConfigFormat<? extends CommentedConfig> format)
Creates a new trhead-safe CommentedFileConfig based on the specified file and format.
|
static CommentedFileConfig |
ofConcurrent(java.lang.String filePath)
Creates a new trhead-safe CommentedFileConfig based on the specified file and format.
|
static CommentedFileConfig |
ofConcurrent(java.lang.String filePath,
ConfigFormat<? extends CommentedConfig> format)
Creates a new trhead-safe CommentedFileConfig based on the specified file and format.
|
clearComments, commentMap, concurrentCopy, concurrentCopy, concurrentCopy, concurrentCopy, copy, copy, copy, copy, copy, copy, copy, copy, createSubConfig, entrySet, fake, inMemory, inMemoryConcurrent, of, of, ofConcurrent, putAllComments, putAllComments, removeComment, removeComment, setComment, setComment, unmodifiable, wrapcontainsComment, containsComment, fake, getComment, getComment, getComments, getComments, getOptionalComment, getOptionalCommentbuilder, builder, builder, close, getFile, getNioPath, load, of, of, of, ofConcurrent, ofConcurrent, ofConcurrent, saveadd, add, addAll, clear, 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, sizedefault CommentedFileConfig checked()
ConfigConfigFormat.supportsType(Class)
method. Trying to insert an unsupported value throws an IllegalArgumentException.
The values that are in the config when this method is called are also checked.
checked in interface CommentedConfigchecked in interface Configchecked in interface FileConfigstatic CommentedFileConfig of(java.io.File file)
of in interface FileConfigfile - the file to use to save and load the configNoFormatFoundException - if the format detection failsstatic CommentedFileConfig of(java.io.File file, ConfigFormat<? extends CommentedConfig> format)
file - the file to use to save and load the configformat - the config's formatstatic CommentedFileConfig of(java.nio.file.Path file)
of in interface FileConfigfile - the file to use to save and load the configNoFormatFoundException - if the format detection failsstatic CommentedFileConfig of(java.nio.file.Path file, ConfigFormat<? extends CommentedConfig> format)
file - the file to use to save and load the configformat - the config's formatstatic CommentedFileConfig of(java.lang.String filePath)
of in interface FileConfigfilePath - the file's pathNoFormatFoundException - if the format detection failsstatic CommentedFileConfig of(java.lang.String filePath, ConfigFormat<? extends CommentedConfig> format)
filePath - the file's pathformat - the config's formatstatic CommentedFileConfig ofConcurrent(java.io.File file)
ofConcurrent in interface FileConfigfile - the file to use to save and load the configNoFormatFoundException - if the format detection failsstatic CommentedFileConfig ofConcurrent(java.io.File file, ConfigFormat<? extends CommentedConfig> format)
file - the file to use to save and load the configformat - the config's formatstatic CommentedFileConfig ofConcurrent(java.nio.file.Path file)
ofConcurrent in interface FileConfigfile - the file to use to save and load the configNoFormatFoundException - if the format detection failsstatic CommentedFileConfig ofConcurrent(java.nio.file.Path file, ConfigFormat<? extends CommentedConfig> format)
file - the file to use to save and load the configformat - the config's formatstatic CommentedFileConfig ofConcurrent(java.lang.String filePath, ConfigFormat<? extends CommentedConfig> format)
filePath - the file's pathformat - the config's formatstatic CommentedFileConfig ofConcurrent(java.lang.String filePath)
ofConcurrent in interface FileConfigfilePath - the file's pathNoFormatFoundException - if the format detection failsstatic CommentedFileConfigBuilder builder(java.io.File file, ConfigFormat<? extends CommentedConfig> format)
file - the file to use to save and load the configformat - the config's formatstatic CommentedFileConfigBuilder builder(java.io.File file)
builder in interface FileConfigfile - the file to use to save and load the configNoFormatFoundException - if the format detection failsstatic CommentedFileConfigBuilder builder(java.nio.file.Path file, ConfigFormat<? extends CommentedConfig> format)
file - the file to use to save and load the configformat - the config's formatstatic CommentedFileConfigBuilder builder(java.nio.file.Path file)
builder in interface FileConfigfile - the file to use to save and load the configNoFormatFoundException - if the format detection failsstatic CommentedFileConfigBuilder builder(java.lang.String filePath)
builder in interface FileConfigfilePath - the file's pathNoFormatFoundException - if the format detection failsstatic CommentedFileConfigBuilder builder(java.lang.String filePath, ConfigFormat<? extends CommentedConfig> format)
filePath - the file's pathformat - the config's format