Skip navigation links
A B C D E F G H I K L M N O P R S T U V W 

A

AbstractCommentedConfig - Class in com.electronwill.nightconfig.core
An abstract CommentedConfig backed by two maps: one for the values and one for the comments.
AbstractCommentedConfig(boolean) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig
Deprecated.
AbstractCommentedConfig(Supplier<Map<String, Object>>) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
AbstractCommentedConfig(Map<String, Object>) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig
Creates an AbstractCommentedConfig backed by the specified map
AbstractCommentedConfig(Map<String, Object>, Map<String, String>) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig
Creates an AbstractCommentedConfig backed by the specified map
AbstractCommentedConfig(UnmodifiableConfig, boolean) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig
Deprecated.
AbstractCommentedConfig(UnmodifiableConfig, Supplier<Map<String, Object>>) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
AbstractCommentedConfig(UnmodifiableCommentedConfig, boolean) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig
Deprecated.
AbstractCommentedConfig(UnmodifiableCommentedConfig, Supplier<Map<String, Object>>) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
AbstractCommentedConfig.CommentedEntryWrapper - Class in com.electronwill.nightconfig.core
 
AbstractConfig - Class in com.electronwill.nightconfig.core
An abstract Config that uses a Map to store its values.
AbstractConfig(boolean) - Constructor for class com.electronwill.nightconfig.core.AbstractConfig
Deprecated.
AbstractConfig(Supplier<Map<String, Object>>) - Constructor for class com.electronwill.nightconfig.core.AbstractConfig
Creates a new AbstractConfig with all backing maps supplied by the given Supplier.
AbstractConfig(Map<String, Object>) - Constructor for class com.electronwill.nightconfig.core.AbstractConfig
Creates a new AbstractConfig backed by the specified Map.
AbstractConfig(UnmodifiableConfig, boolean) - Constructor for class com.electronwill.nightconfig.core.AbstractConfig
Deprecated.
AbstractConfig(UnmodifiableConfig, Supplier<Map<String, Object>>) - Constructor for class com.electronwill.nightconfig.core.AbstractConfig
Creates a new AbstractConfig that is a copy of the specified config, and with all backing maps supplied by the given Supplier.
AbstractConfig.EntryWrapper - Class in com.electronwill.nightconfig.core
A wrapper around a Map.Entry<String, Object>.
AbstractInput - Class in com.electronwill.nightconfig.core.io
Abstract base class for CharacterInputs.
AbstractInput() - Constructor for class com.electronwill.nightconfig.core.io.AbstractInput
 
acceptNewVersion(CommentedConfig) - Method in interface com.electronwill.nightconfig.core.file.ConfigLoadFilter
Filters the new version of a config, before it has been applied on the config itself.
add(List<String>, Object) - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
add(List<String>, Object) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
add(List<String>, Object) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
add(String, Object) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
add(List<String>, Object) - Method in interface com.electronwill.nightconfig.core.Config
Adds a config value.
add(String, Object) - Method in interface com.electronwill.nightconfig.core.Config
Adds a config value.
add(List<String>, Object) - Method in class com.electronwill.nightconfig.core.utils.ConfigWrapper
 
add(K) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
add(K) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
add(ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
add(int, ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
add(ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingListIterator
 
addAll(UnmodifiableConfig) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
addAll(UnmodifiableConfig) - Method in interface com.electronwill.nightconfig.core.Config
Adds all the values of a config to this config, without replacing existing entries.
addAll(Collection<? extends K>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
addAll(Collection<? extends K>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
addAll(Collection<? extends ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
addAll(int, Collection<? extends ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
addFirst(int) - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Inserts an element before the head of this deque.
AdditionalCharsets - Class in com.electronwill.nightconfig.core.io
Additional charsets to help parse configurations in an unknown encoding.
addLast(int) - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Inserts an element at the tail of this deque.
addWatch(File, Runnable) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
Watches a file, if not already watched by this FileWatcher.
addWatch(Path, Runnable) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
Watches a file, if not already watched by this FileWatcher.
addWatchFuture(Path, Runnable) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
Watches a File, if not already watched by this FileWatcher.
AdvancedPath - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
append(char) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
append(CharSequence) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
append(CharSequence, int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
append(char...) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Appends a char array to this builder.
append(char[], int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Appends a portion of a char array to this builder.
append(String) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Appends a String to this builder.
append(String, int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Appends a String to this builder.
append(CharsWrapper) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Appends a CharsWrapper to this builder.
append(Object) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Appends the string representation of an object to this builder.
append(Object...) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Appends multiple objects to this builder.
apply(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
apply(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
For scala: gets a config value.
apply(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
For scala: gets a config value.
arrayContains(char[], char) - Static method in class com.electronwill.nightconfig.core.io.Utils
Checks if an array contains the specified element.
arrayIndexOf(char[], char) - Static method in class com.electronwill.nightconfig.core.io.Utils
Returns the index, within the specified array, of the first occurrence of the specified character.
ArrayInput - Class in com.electronwill.nightconfig.core.io
An implementation of CharacterInput based on an array of characters.
ArrayInput(CharsWrapper) - Constructor for class com.electronwill.nightconfig.core.io.ArrayInput
Creates a new ArrayInput based on the underlying array of the specified CharsWrapper.
ArrayInput(char[]) - Constructor for class com.electronwill.nightconfig.core.io.ArrayInput
Creates a new ArrayInput based on the specified array.
ArrayInput(char[], int, int) - Constructor for class com.electronwill.nightconfig.core.io.ArrayInput
Creates a new ArrayInput based on the specified array.
async() - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Makes the configuration "write-asynchronous", that is, its FileConfig.save() method does not wait for the write operation to complete.
asyncWithDebouncing(Duration) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Makes the configuration "write-asynchronous" and specifies its debouncing time.
atomicMove - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
autoLoadListener - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
autoreload() - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Makes the configuration "autoreloaded", that is, its FileConfig.load() method is automatically called when the file is modified.
autoreload(FileWatcher) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Makes the configuration "autoreloaded", using the given FileWatcher to monitor the config file.
autoreloadFileWatcher - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
autosave - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
autosave() - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Makes the configuration "autosaved", that is, its FileConfig.save() method is automatically called when it is modified.
autoSaveListener - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 

B

backingMapCreator(Supplier<Map<String, Object>>) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Uses a specific Supplier to create the backing maps (one for the top level and one for each sub-configuration) of the configuration.
bind(Class<?>) - Method in class com.electronwill.nightconfig.core.conversion.ObjectBinder
Creates a new config bound to the static fields of a class.
bind(Class<?>, ConfigFormat<?>) - Method in class com.electronwill.nightconfig.core.conversion.ObjectBinder
Creates a new config bound to the static fields of a class.
bind(Object) - Method in class com.electronwill.nightconfig.core.conversion.ObjectBinder
Creates a new config bound to the fields of a object.
bind(Object, ConfigFormat<?>) - Method in class com.electronwill.nightconfig.core.conversion.ObjectBinder
Creates a new config bound to the fields of a object.
blankBuilder() - Static method in class com.electronwill.nightconfig.core.serde.ObjectDeserializer
Creates a new ObjectDeserializerBuilder without the standard deserializers already registered.
blankBuilder() - Static method in class com.electronwill.nightconfig.core.serde.ObjectSerializer
Creates a new ObjectSerializerBuilder with some standard serializers already registered.
build() - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Creates a new FileConfig with the chosen settings.
build() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Builds a CharsWrapper with the content of this builder.
build(int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Builds a CharsWrapper with the content of this builder.
build(int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Builds a CharsWrapper with the content of this builder.
build() - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializerBuilder
Builds the ObjectDeserializer with the current settings.
build() - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializerBuilder
 
buildAutosave(CommentedFileConfig) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
 
builder(File, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
builder(File) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
builder(Path, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
builder(Path) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
builder(String) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
builder(String, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Returns a CommentedFileConfigBuilder to create a CommentedFileConfig with many options.
builder(File) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Returns a FileConfigBuilder to create a FileConfig with many options.
builder(File, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Returns a FileConfigBuilder to create a FileConfig with many options.
builder(Path) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Returns a FileConfigBuilder to create a FileConfig with many options.
builder(Path, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Returns a FileConfigBuilder to create a FileConfig with many options.
builder(String) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Returns a FileConfigBuilder to create a FileConfig with many options.
builder(String, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Returns a FileConfigBuilder to create a FileConfig with many options.
Builder(int) - Constructor for class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Creates a new CharsWrapper's builder with the specified initial capacity.
builder() - Static method in class com.electronwill.nightconfig.core.serde.ObjectDeserializer
Creates a new ObjectDeserializerBuilder with some standard deserializers already registered.
builder() - Static method in class com.electronwill.nightconfig.core.serde.ObjectSerializer
Creates a new ObjectSerializerBuilder with some standard serializers already registered.
buildNormal(CommentedFileConfig) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
 
bulkCommentedRead(Function<? super UnmodifiableCommentedConfig, R>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentCommentedConfig
Performs multiple reads as a single atomic operation, and returns a value.
bulkCommentedRead(Consumer<? super UnmodifiableCommentedConfig>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentCommentedConfig
Performs multiple reads as a single atomic operation.
bulkCommentedRead(Function<? super UnmodifiableCommentedConfig, R>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
bulkCommentedRead(Function<? super UnmodifiableCommentedConfig, R>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
bulkCommentedRead(Function<? super UnmodifiableCommentedConfig, R>) - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
bulkCommentedRead(Consumer<? super UnmodifiableCommentedConfig>) - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
bulkCommentedRead(Function<? super UnmodifiableCommentedConfig, R>) - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
bulkCommentedUpdate(Function<? super CommentedConfig, R>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentCommentedConfig
Performs multiple reads and writes as a single atomic operation and returns a value.
bulkCommentedUpdate(Consumer<? super CommentedConfig>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentCommentedConfig
Performs multiple reads and writes as a single atomic operation.
bulkCommentedUpdate(Function<? super CommentedConfig, R>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
bulkCommentedUpdate(Function<? super CommentedConfig, R>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
bulkCommentedUpdate(Function<? super CommentedConfig, R>) - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
bulkCommentedUpdate(Function<? super CommentedConfig, R>) - Method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Performs multiple read/write operations, and do not save the configuration until the end (unless save() is called by action).
bulkCommentedUpdate(Consumer<? super CommentedConfig>) - Method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Performs multiple read/write operations, and do not save the configuration until the end (unless save() is called by action).
bulkCommentedUpdate(Consumer<? super CommentedConfig>) - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
bulkCommentedUpdate(Function<? super CommentedConfig, R>) - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
bulkRead(Function<? super UnmodifiableConfig, R>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentCommentedConfig
 
bulkRead(Function<? super UnmodifiableConfig, R>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentConfig
Performs multiple reads as a single atomic operation and returns a value.
bulkRead(Consumer<? super UnmodifiableConfig>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentConfig
Performs multiple reads as a single atomic operation.
bulkRead(Function<? super UnmodifiableConfig, R>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
bulkRead(Function<? super UnmodifiableConfig, R>) - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
bulkRead(Function<? super UnmodifiableConfig, R>) - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
bulkRead(Consumer<? super UnmodifiableConfig>) - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
bulkRead(Function<? super UnmodifiableConfig, R>) - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
bulkUpdate(Function<? super Config, R>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentCommentedConfig
 
bulkUpdate(Function<? super Config, R>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentConfig
Performs multiple reads and writes as a single atomic operation and returns a value.
bulkUpdate(Consumer<? super Config>) - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentConfig
Performs multiple reads and writes as a single atomic operation.
bulkUpdate(Function<? super Config, R>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
bulkUpdate(Function<? super Config, R>) - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
bulkUpdate(Function<? super Config, R>) - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
bulkUpdate(Function<? super Config, R>) - Method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
 
bulkUpdate(Function<? super Config, R>) - Method in interface com.electronwill.nightconfig.core.file.FileConfig
Performs multiple read/write operations, and do not save the configuration until the end (unless save() is called by action).
bulkUpdate(Consumer<? super Config>) - Method in interface com.electronwill.nightconfig.core.file.FileConfig
Performs multiple read/write operations, and do not save the configuration until the end (unless save() is called by action).
bulkUpdate(Consumer<? super Config>) - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
bulkUpdate(Function<? super Config, R>) - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 

C

chainThen(ConversionTable) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns a ConversionTable that behaves as if the specified table was applied just after this table, for every conversion.
CharacterInput - Interface in com.electronwill.nightconfig.core.io
Interface for sources of characters.
characteristics() - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
CharacterOutput - Interface in com.electronwill.nightconfig.core.io
Interface for outputs of characters.
charAt(int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
 
chars - Variable in enum com.electronwill.nightconfig.core.io.IndentStyle
 
chars - Variable in enum com.electronwill.nightconfig.core.io.NewlineStyle
 
charset - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
charset(Charset) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Sets the charset used for FileConfig.save() and FileConfig.load().
CharsWrapper - Class in com.electronwill.nightconfig.core.io
A simple, efficient implementation of CharSequence, designed to avoid data copying and to maximize performance.
CharsWrapper(char...) - Constructor for class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a new CharsWrapper backed by the given char array.
CharsWrapper(char[], int, int) - Constructor for class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a new CharsWrapper backed by the given char array.
CharsWrapper(String) - Constructor for class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a new CharsWrapper containing the same characters as the specified String.
CharsWrapper(String, int, int) - Constructor for class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a new CharsWrapper containing the same characters as the specified String.
CharsWrapper(CharSequence) - Constructor for class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a new CharsWrapper containing the same characters as the specified CharSequence.
CharsWrapper(CharSequence, int, int) - Constructor for class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a new CharsWrapper containing the same characters as the specified CharSequence.
CharsWrapper.Builder - Class in com.electronwill.nightconfig.core.io
Builder class for constructing CharsWrappers.
checked() - Method in interface com.electronwill.nightconfig.core.CommentedConfig
 
checked() - Method in interface com.electronwill.nightconfig.core.Config
Returns a checked view of the config.
checked() - Method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
 
checked() - Method in interface com.electronwill.nightconfig.core.file.FileConfig
 
clear() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
clear() - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
clear() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
clear() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
clear() - Method in interface com.electronwill.nightconfig.core.Config
Removes all values from the config.
clear() - Method in class com.electronwill.nightconfig.core.utils.ConfigWrapper
 
clear() - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Clears this deque.
clear() - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
clear() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
clear() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
clear() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
clear() - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
clearComments() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
clearComments() - Method in interface com.electronwill.nightconfig.core.CommentedConfig
Removes all the comments from the config.
clearComments() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
clearComments() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
clearComments() - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
clearComments() - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
clone() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
clone() - Method in class com.electronwill.nightconfig.core.AbstractConfig
Creates and return a copy of this config.
clone() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig.Accumulator
 
clone() - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
 
clone() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Creates and returns a copy of this CharsWrapper.
close() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
close() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
close() - Method in interface com.electronwill.nightconfig.core.file.FileConfig
Closes this FileConfig, releases its associated resources (if any), and ensure that the ongoing saving operations complete.
close() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
close() - Method in class com.electronwill.nightconfig.core.utils.FastStringReader
 
com.electronwill.nightconfig.core - package com.electronwill.nightconfig.core
This is the main package of the NightConfig library.
com.electronwill.nightconfig.core.concurrent - package com.electronwill.nightconfig.core.concurrent
Provides configurations that can be used from multiple threads.
com.electronwill.nightconfig.core.conversion - package com.electronwill.nightconfig.core.conversion
(deprecated) Provides tools for converting configurations to/from Java objects, and converting config values on the fly.
com.electronwill.nightconfig.core.file - package com.electronwill.nightconfig.core.file
Provides configurations that are loaded from and saved to files.
com.electronwill.nightconfig.core.io - package com.electronwill.nightconfig.core.io
Provides basic parsing and writing interfaces, and bricks to implement new parsers and writers.
com.electronwill.nightconfig.core.serde - package com.electronwill.nightconfig.core.serde
Provides tools for serializing values to configurations, and deserializing configurations to Java objects.
com.electronwill.nightconfig.core.serde.annotations - package com.electronwill.nightconfig.core.serde.annotations
Annotations that change how Java objects are (de)serialized.
com.electronwill.nightconfig.core.utils - package com.electronwill.nightconfig.core.utils
Contains various utilities, mainly used by NightConfig internals.
CommentedConfig - Interface in com.electronwill.nightconfig.core
A modifiable config that supports comments.
CommentedConfig.Entry - Interface in com.electronwill.nightconfig.core
A modifiable commented config entry.
CommentedConfigWrapper<C extends CommentedConfig> - Class in com.electronwill.nightconfig.core.utils
 
CommentedConfigWrapper(C) - Constructor for class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
CommentedEntryWrapper(Map.Entry<String, Object>) - Constructor for class com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
 
CommentedFileConfig - Interface in com.electronwill.nightconfig.core.file
A commented configuration that is tied to a particular file.
CommentedFileConfigBuilder - Class in com.electronwill.nightconfig.core.file
Builder for CommentedFileConfig.
commentMap - Variable in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
commentMap() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
commentMap() - Method in interface com.electronwill.nightconfig.core.CommentedConfig
Deprecated.
commentMap() may not be supported by some config types, in particular ConcurrentConfig, and may be removed in a future version. Prefer to use CommentedConfig.entrySet() instead.
commentMap() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
commentMap() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
commentMap() - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Deprecated.
commentMap() may not be supported by some config types, in particular ConcurrentConfig, and may be removed in a future version. Prefer to use UnmodifiableCommentedConfig.entrySet() instead.
commentMap() - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
commentMap() - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
commentMap() - Method in class com.electronwill.nightconfig.core.utils.FakeUnmodifiableCommentedConfig
 
CommentNode(String, Map<String, UnmodifiableCommentedConfig.CommentNode>) - Constructor for class com.electronwill.nightconfig.core.UnmodifiableCommentedConfig.CommentNode
Creates a new CommentNode.
compact() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Compacts this builder, minimizing its size in memory.
compact() - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Compacts this deque, minimizing its size in memory.
compute(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
compute(K, BiFunction<? super K, ? super ExternalV, ? extends ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
computeIfAbsent(K, Function<? super K, ? extends V>) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
computeIfAbsent(K, Function<? super K, ? extends ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
computeIfPresent(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
computeIfPresent(K, BiFunction<? super K, ? super ExternalV, ? extends ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
concurrent() - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Deprecated.
Since NightConfig v3.7, this method has no effect because all FileConfig are thread-safe, backed by ConcurrentConfig.
ConcurrentCommentedConfig - Interface in com.electronwill.nightconfig.core.concurrent
Interface for thread-safe configurations with comments.
ConcurrentCommentedConfigWrapper<C extends ConcurrentCommentedConfig> - Class in com.electronwill.nightconfig.core.utils
 
ConcurrentCommentedConfigWrapper(C) - Constructor for class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
ConcurrentConfig - Interface in com.electronwill.nightconfig.core.concurrent
Interface for thread-safe configurations.
ConcurrentConfigSpec - Class in com.electronwill.nightconfig.core
Deprecated.
A concurrent HashMap is not enough to make the whole spec robust to multi-threaded use.
ConcurrentConfigSpec() - Constructor for class com.electronwill.nightconfig.core.ConcurrentConfigSpec
Deprecated.
Creates a new ConfigSpec backed by a ConcurrentMap.
concurrentCopy(UnmodifiableConfig) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
concurrentCopy(UnmodifiableConfig, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
concurrentCopy(UnmodifiableCommentedConfig) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
concurrentCopy(UnmodifiableCommentedConfig, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
concurrentCopy(UnmodifiableConfig) - Static method in interface com.electronwill.nightconfig.core.Config
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
concurrentCopy(UnmodifiableConfig, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.Config
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
Config - Interface in com.electronwill.nightconfig.core
A (modifiable) configuration that contains key/value mappings.
config - Variable in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
Config.Entry - Interface in com.electronwill.nightconfig.core
A modifiable config entry.
configFormat() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig.Accumulator
 
configFormat() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
configFormat() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
ConfigFormat<C extends Config> - Interface in com.electronwill.nightconfig.core
A configuration format, that can parse, create and write some types of configurations.
configFormat() - Method in class com.electronwill.nightconfig.core.serde.SerializerContext
 
configFormat() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Returns the config's format.
configFormat() - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
ConfigLoadFilter - Interface in com.electronwill.nightconfig.core.file
A filter that is applied when a FileConfig is loaded and reloaded.
ConfigParser<C extends Config> - Interface in com.electronwill.nightconfig.core.io
Interface for reading configurations.
ConfigSpec - Class in com.electronwill.nightconfig.core
Represents a specification for a configuration.
ConfigSpec() - Constructor for class com.electronwill.nightconfig.core.ConfigSpec
 
ConfigSpec(Config) - Constructor for class com.electronwill.nightconfig.core.ConfigSpec
 
ConfigSpec.CorrectionAction - Enum in com.electronwill.nightconfig.core
What to do when a value is incorrect.
ConfigSpec.CorrectionListener - Interface in com.electronwill.nightconfig.core
Listens to the corrections made by the methods ConfigSpec.correct(Config) and ConfigSpec.correct(Config, CorrectionListener).
ConfigWrapper<C extends Config> - Class in com.electronwill.nightconfig.core.utils
 
ConfigWrapper(C) - Constructor for class com.electronwill.nightconfig.core.utils.ConfigWrapper
 
ConfigWriter - Interface in com.electronwill.nightconfig.core.io
Interface for writing configurations.
consumeDeque(char[], int, boolean) - Method in class com.electronwill.nightconfig.core.io.AbstractInput
Consumes the chars of the deque and put them in an array.
contains(List<String>) - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
contains(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
contains(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
contains(Class<?>) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Checks that a function is defined for the specified class.
contains(char) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Checks if this CharsWrapper contains the specified character.
contains(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Checks if the config contains a value at some path.
contains(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Checks if the config contains a value at some path.
contains(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
contains(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
contains(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
contains(List<String>) - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
containsAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
containsAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
containsAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
containsComment(List<String>) - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
containsComment(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
containsComment(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
containsComment(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Checks if the config contains a comment at some path.
containsComment(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Checks if the config contains a comment at some path.
containsComment(List<String>) - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
containsComment(List<String>) - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
containsComment(List<String>) - Method in class com.electronwill.nightconfig.core.utils.FakeUnmodifiableCommentedConfig
 
containsKey(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
containsKey(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
containsValue(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
containsValue(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
contentEquals(CharSequence) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Compares this CharsWrapper to a CharSequence.
contentEquals(char[]) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Compares this CharsWrapper to an array of characters.
Conversion - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
ConversionTable - Class in com.electronwill.nightconfig.core.conversion
Contains conversions functions organized by value's type.
ConversionTable() - Constructor for class com.electronwill.nightconfig.core.conversion.ConversionTable
Creates a new empty ConversionTable.
convert(Config) - Static method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
convert(Object) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Converts a value using the conversion function that corresponds to its type.
convertDeep(Config) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Performs a deep in-place conversion of a Config.
ConvertedCommentedConfig - Class in com.electronwill.nightconfig.core.conversion
A Config's wrapper that converts the values that are read from and put into the config.
ConvertedCommentedConfig(CommentedConfig, ConversionTable, ConversionTable, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedCommentedConfig
Creates a new ConvertedConfig that uses two conversion tables.
ConvertedCommentedConfig(CommentedConfig, Function<Object, Object>, Function<Object, Object>, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedCommentedConfig
Creates a new ConvertedConfig that uses two custom conversion functions.
ConvertedCommentedFileConfig - Class in com.electronwill.nightconfig.core.conversion
 
ConvertedCommentedFileConfig(CommentedFileConfig, ConversionTable, ConversionTable, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
ConvertedCommentedFileConfig(CommentedFileConfig, Function<Object, Object>, Function<Object, Object>, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
ConvertedConfig - Class in com.electronwill.nightconfig.core.conversion
A Config's wrapper that converts the values that are read from and put into the config
ConvertedConfig(Config, ConversionTable, ConversionTable, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedConfig
Creates a new ConvertedConfig that uses two conversion tables.
ConvertedConfig(Config, Function<Object, Object>, Function<Object, Object>, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedConfig
Creates a new ConvertedConfig that uses two custom conversion functions.
ConvertedFileConfig - Class in com.electronwill.nightconfig.core.conversion
 
ConvertedFileConfig(FileConfig, ConversionTable, ConversionTable, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
ConvertedFileConfig(FileConfig, Function<Object, Object>, Function<Object, Object>, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
ConvertedFormat<C extends Config,F extends ConfigFormat<C>> - Class in com.electronwill.nightconfig.core.conversion
 
ConvertedFormat(F, Predicate<Class<?>>) - Constructor for class com.electronwill.nightconfig.core.conversion.ConvertedFormat
 
Converter<FieldType,ConfigValueType> - Interface in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde.
convertFromField(FieldType) - Method in interface com.electronwill.nightconfig.core.conversion.Converter
Deprecated.
 
convertShallow(Config) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Performs a shallow in-place conversion of a Config.
convertToField(ConfigValueType) - Method in interface com.electronwill.nightconfig.core.conversion.Converter
Deprecated.
 
copy(UnmodifiableConfig) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a new CommentedConfig with the content of the given config.
copy(UnmodifiableConfig, Supplier<Map<String, Object>>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a new CommentedConfig with the content of the given config.
copy(UnmodifiableConfig, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a new CommentedConfig with the content of the given config.
copy(UnmodifiableConfig, Supplier<Map<String, Object>>, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a new CommentedConfig with the content of the given config.
copy(UnmodifiableCommentedConfig) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a new CommentedConfig with the content of the given config.
copy(UnmodifiableCommentedConfig, Supplier<Map<String, Object>>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a new CommentedConfig with the content of the given config.
copy(UnmodifiableCommentedConfig, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a new CommentedConfig with the content of the given config.
copy(UnmodifiableCommentedConfig, Supplier<Map<String, Object>>, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a new CommentedConfig with the content of the given config.
copy(UnmodifiableConfig) - Static method in interface com.electronwill.nightconfig.core.Config
Creates a new Config with the content of the given config.
copy(UnmodifiableConfig, Supplier<Map<String, Object>>) - Static method in interface com.electronwill.nightconfig.core.Config
Creates a new Config with the content of the given config.
copy(UnmodifiableConfig, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.Config
Creates a new Config with the content of the given config.
copy(UnmodifiableConfig, Supplier<Map<String, Object>>, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.Config
Creates a new Config with the content of the given config.
copyAndBuild() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Builds a CharsWrapper with a copy of the content of this builder.
copyAndBuild(int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Builds a CharsWrapper with a copy of the content of this builder.
copyAndBuild(int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Builds a CharsWrapper with a copy of the content of this builder.
copyData(URL) - Static method in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
Action: copies the data at the given url.
copyData(File) - Static method in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
Action: copies the specified file.
copyData(Path) - Static method in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
Action: copies the specified file.
copyData(InputStream) - Static method in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
Action: copies the stream's data.
copyResource(String) - Static method in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
Action: copies the inner resource.
correct(String, Object) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Corrects a value.
correct(List<String>, Object) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Corrects a value.
correct(Config) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Corrects a configuration.
correct(Config, ConfigSpec.CorrectionListener) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Corrects a configuration.
CREATE_EMPTY - Static variable in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
 
createCommentedConfig() - Method in class com.electronwill.nightconfig.core.serde.SerializerContext
 
createConcurrentConfig() - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Creates a config of this format.
createConcurrentConfig() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFormat
 
createConfig() - Method in interface com.electronwill.nightconfig.core.ConfigFormat
 
createConfig(Supplier<Map<String, Object>>) - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Creates a config that uses the given map supplier for all its levels (top level and subconfigs).
createConfig() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFormat
 
createConfig(Supplier<Map<String, Object>>) - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFormat
 
createConfig(Supplier<Map<String, Object>>) - Method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
createConfig(Supplier<Map<String, Object>>) - Method in class com.electronwill.nightconfig.core.InMemoryFormat
 
createConfig() - Method in class com.electronwill.nightconfig.core.serde.SerializerContext
 
createParser() - Method in interface com.electronwill.nightconfig.core.ConfigFormat
 
createParser() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFormat
 
createParser() - Method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
createParser() - Method in class com.electronwill.nightconfig.core.InMemoryFormat
 
createSubConfig() - Method in interface com.electronwill.nightconfig.core.CommentedConfig
 
createSubConfig() - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentCommentedConfig
 
createSubConfig() - Method in interface com.electronwill.nightconfig.core.concurrent.ConcurrentConfig
Creates a new configuration that is meant to be inserted into this config.
createSubConfig() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig.Accumulator
 
createSubConfig() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
createSubConfig() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
createSubConfig() - Method in interface com.electronwill.nightconfig.core.Config
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).
createSubConfig() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
createSubConfig() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
createSubConfig() - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
createSubConfig() - Method in class com.electronwill.nightconfig.core.utils.ConcurrentCommentedConfigWrapper
 
createSubConfig() - Method in class com.electronwill.nightconfig.core.utils.ConfigWrapper
 
createSubConfig() - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
createWriter() - Method in interface com.electronwill.nightconfig.core.ConfigFormat
 
createWriter() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFormat
 
createWriter() - Method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
createWriter() - Method in class com.electronwill.nightconfig.core.InMemoryFormat
 

D

defaultData(File) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Sets the file to copy when the config's file is not found.
defaultData(Path) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Sets the file to copy when the config's file is not found.
defaultData(URL) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Sets the URL of the data to copy when the config's file is not found.
defaultInstance() - Static method in class com.electronwill.nightconfig.core.file.FileWatcher
Gets the default, global instance of FileWatcher.
defaultInstance() - Static method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
defaultInstance() - Static method in class com.electronwill.nightconfig.core.InMemoryFormat
 
defaultResource(String) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Sets the resource (in the jar) to copy when the config's file is not found.
define(String, Object) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
define(List<String>, Object) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
define(String, Object, Predicate<Object>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
define(String, Supplier<?>, Predicate<Object>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
define(List<String>, Object, Predicate<Object>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
define(List<String>, Supplier<?>, Predicate<Object>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineEnum(String, T, EnumGetMethod) - Method in class com.electronwill.nightconfig.core.ConfigSpec
 
defineEnum(List<String>, T, EnumGetMethod) - Method in class com.electronwill.nightconfig.core.ConfigSpec
 
defineEnum(String, Class<T>, EnumGetMethod, Supplier<T>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
 
defineEnum(List<String>, Class<T>, EnumGetMethod, Supplier<T>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
 
defineInList(String, Object, Collection<?>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineInList(String, Supplier<?>, Collection<?>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineInList(List<String>, Object, Collection<?>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineInList(List<String>, Supplier<?>, Collection<?>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineInRange(String, V, V, V) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineInRange(String, Supplier<V>, V, V) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineInRange(List<String>, V, V, V) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineInRange(List<String>, Supplier<V>, V, V) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineList(String, List<?>, Predicate<Object>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineList(String, Supplier<List<?>>, Predicate<Object>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineList(List<String>, List<?>, Predicate<Object>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineList(List<String>, Supplier<List<?>>, Predicate<Object>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineOfClass(String, V, Class<? super V>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineOfClass(String, Supplier<V>, Class<? super V>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineOfClass(List<String>, V, Class<? super V>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineOfClass(List<String>, Supplier<V>, Class<? super V>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Defines an entry.
defineRestrictedEnum(String, T, Collection<T>, EnumGetMethod) - Method in class com.electronwill.nightconfig.core.ConfigSpec
 
defineRestrictedEnum(List<String>, T, Collection<T>, EnumGetMethod) - Method in class com.electronwill.nightconfig.core.ConfigSpec
 
defineRestrictedEnum(String, Class<T>, Collection<T>, EnumGetMethod, Supplier<T>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
 
defineRestrictedEnum(List<String>, Class<T>, Collection<T>, EnumGetMethod, Supplier<T>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
 
deque - Variable in class com.electronwill.nightconfig.core.io.AbstractInput
Contains the peeked characters that haven't been read (by the read methods) yet.
deserialize(T, Optional<TypeConstraint>, DeserializerContext) - Method in interface com.electronwill.nightconfig.core.serde.ValueDeserializer
 
deserializeFields(UnmodifiableConfig, Object) - Method in class com.electronwill.nightconfig.core.serde.DeserializerContext
Deserializes a configuration by transforming its entries into fields of the destination object.
deserializeFields(UnmodifiableConfig, Object) - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializer
Deserializes a Config as an object by transforming the config entries into fields.
deserializeFields(UnmodifiableConfig, Supplier<? extends R>) - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializer
Deserializes a Config as an object of type R by transforming the config entries into fields.
DeserializerContext - Class in com.electronwill.nightconfig.core.serde
Holds deserialization settings and provides some base deserialization logic.
deserializeToCollection(Object, Class<C>, Class<V>) - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializer
Deserializes a value into an instance of the collection C<V>.
deserializeToMap(Object, Class<M>, Class<V>) - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializer
Deserializes a value into an instance of the map M<String, V>.
deserializeTransientFields() - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializerBuilder
Deserialize transient fields instead of ignoring them.
deserializeValue(Object, Optional<TypeConstraint>) - Method in class com.electronwill.nightconfig.core.serde.DeserializerContext
Deserializes a single value in way that satisfies the given type constraint.
detect(File) - Static method in class com.electronwill.nightconfig.core.file.FormatDetector
Detects the ConfigFormat of a file.
detect(Path) - Static method in class com.electronwill.nightconfig.core.file.FormatDetector
Detects the ConfigFormat of a file.
detectByName(String) - Static method in class com.electronwill.nightconfig.core.file.FormatDetector
Detects the ConfigFormat of a filename.
directRead() - Method in class com.electronwill.nightconfig.core.io.AbstractInput
Tries to parse the next character without taking care of the peek deque.
directRead() - Method in class com.electronwill.nightconfig.core.io.ArrayInput
 
directRead() - Method in class com.electronwill.nightconfig.core.io.ReaderInput
 
directReadChar() - Method in class com.electronwill.nightconfig.core.io.AbstractInput
Tries to parse the next character without taking care of the peek deque.
directReadChar() - Method in class com.electronwill.nightconfig.core.io.ArrayInput
 
directReadChar() - Method in class com.electronwill.nightconfig.core.io.ReaderInput
 

E

entrySet() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
entrySet() - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
entrySet() - Method in interface com.electronwill.nightconfig.core.CommentedConfig
 
entrySet() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
Returns a view of the entries contained in the configuration.
entrySet() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
entrySet() - Method in interface com.electronwill.nightconfig.core.Config
Returns a Set view of the config's entries.
entrySet() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedConfig
 
entrySet() - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
 
entrySet() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Returns a Set view of the config's entries.
entrySet() - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
entrySet() - Method in class com.electronwill.nightconfig.core.utils.ConfigWrapper
 
entrySet() - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
entrySet() - Method in class com.electronwill.nightconfig.core.utils.FakeUnmodifiableCommentedConfig
 
entrySet() - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
entrySet() - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
entrySet() - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
EntryWrapper(Map.Entry<String, Object>) - Constructor for class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
 
EnumGetMethod - Enum in com.electronwill.nightconfig.core
Specifies how to treat non-enum values when using UnmodifiableConfig.getEnum(String, Class, EnumGetMethod).
equals(Object) - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
 
equals(Object) - Method in class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
 
equals(Object) - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
equals(Object) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
equals(Object) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
equals(Object) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
 
equals(Object) - Method in class com.electronwill.nightconfig.core.NullObject
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedEntry
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedIterator
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
equals(Object) - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
equalsIgnoreCase(CharSequence) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Compares this CharsWrapper to a CharSequence, ignoring case considerations.
estimateSize() - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 

F

fake(Config) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
If the specified config is an instance of CommentedConfig, returns it.
fake(UnmodifiableConfig) - Static method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
If the specified config is an instance of UnmodifiableCommentedConfig, returns it.
FakeCommentedConfig - Class in com.electronwill.nightconfig.core.utils
A fake CommentedConfig that wraps a config that doesn't support comments.
FakeCommentedConfig(Config) - Constructor for class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
Creates a FakeUnmodifiableCommentedConfig that gets all its values from the given config.
FakeUnmodifiableCommentedConfig - Class in com.electronwill.nightconfig.core.utils
A fake UnmodifiableCommentedConfig that wraps a config that doesn't support comments.
FakeUnmodifiableCommentedConfig(UnmodifiableConfig) - Constructor for class com.electronwill.nightconfig.core.utils.FakeUnmodifiableCommentedConfig
Creates a FakeUnmodifiableCommentedConfig that gets all its values from the given config.
FastStringReader - Class in com.electronwill.nightconfig.core.utils
A fast, unsynchronized, simple Reader that reads the content of a String.
FastStringReader(String, int) - Constructor for class com.electronwill.nightconfig.core.utils.FastStringReader
 
FastStringReader(String) - Constructor for class com.electronwill.nightconfig.core.utils.FastStringReader
 
file - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
FileConfig - Interface in com.electronwill.nightconfig.core.file
A configuration that is tied to a particular file.
FileConfigBuilder - Class in com.electronwill.nightconfig.core.file
Builder for FileConfig.
FileNotFoundAction - Interface in com.electronwill.nightconfig.core.file
Defines the action to perform when the file is not found.
FileWatcher - Class in com.electronwill.nightconfig.core.file
A FileWatcher can watch several files asynchronously.
FileWatcher() - Constructor for class com.electronwill.nightconfig.core.file.FileWatcher
Creates a new FileWatcher with a default exception handler and a default debounce time.
FileWatcher(Consumer<Exception>) - Constructor for class com.electronwill.nightconfig.core.file.FileWatcher
Creates a new FileWatcher with the default debounce time and the given exception handler.
FileWatcher(Duration) - Constructor for class com.electronwill.nightconfig.core.file.FileWatcher
Creates a new FileWatcher with a default exception handler.
FileWatcher(Duration, Consumer<Throwable>) - Constructor for class com.electronwill.nightconfig.core.file.FileWatcher
Creates a new FileWatcher with the given exception handler.
FileWatcher.WatchingException - Exception in com.electronwill.nightconfig.core.file
 
flush() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
ForceBreakdown - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
forEach(Consumer<? super ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
forEach(BiConsumer<? super K, ? super ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
forEachRemaining(Consumer<? super E>) - Method in class com.electronwill.nightconfig.core.utils.ObservedIterator
 
forEachRemaining(Consumer<? super ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
forEachRemaining(Consumer<? super ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
format - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
FormatDetector - Class in com.electronwill.nightconfig.core.file
Utility class for detecting the format of configurations files.

G

GenericBuilder<Base extends Config,Result extends FileConfig> - Class in com.electronwill.nightconfig.core.file
A generic FileConfig/CommentedFileConfig/someOtherFileConfig builder.
get(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
get(Object, Class<T>) - Method in enum com.electronwill.nightconfig.core.EnumGetMethod
 
get(int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
get(int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
 
get(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets a value from the config.
get(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets a value from the config.
get(int) - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Gets the element at the specified index of this deque, without removing it.
get(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
get(int) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
get(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
get() - Method in interface com.electronwill.nightconfig.core.utils.WriterSupplier
 
getByte() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getByte(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
 
getByte(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
 
getByteOrElse(byte) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getByteOrElse(String, byte) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
 
getByteOrElse(List<String>, byte) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
 
getChar() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
If the value is a Number, returns Number.intValue(), cast to char.
getChar(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Returns a char value from the configuration.
getChar(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Returns a char value from the configuration.
getCharOrElse(char) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getCharOrElse(String, char) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Returns a char value from the configuration.
getCharOrElse(List<String>, char) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Returns a char value from the configuration.
getChars() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Gets the underlying array of this builder.
getChildren() - Method in class com.electronwill.nightconfig.core.UnmodifiableCommentedConfig.CommentNode
 
getComment() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
 
getComment(List<String>) - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
getComment(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
getComment(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
getComment() - Method in class com.electronwill.nightconfig.core.UnmodifiableCommentedConfig.CommentNode
 
getComment() - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig.Entry
 
getComment(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Gets a comment from the config.
getComment(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Gets a comment from the config.
getComment(List<String>) - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
getComment(List<String>) - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
getComment(List<String>) - Method in class com.electronwill.nightconfig.core.utils.FakeUnmodifiableCommentedConfig
 
getComments() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
getComments(Map<String, UnmodifiableCommentedConfig.CommentNode>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
getComments() - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Returns a Map containing a deep copy of all the comments in the config.
getComments(Map<String, UnmodifiableCommentedConfig.CommentNode>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Puts all the config's comments to the specified map.
getComments() - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
getComments() - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
getComments() - Method in class com.electronwill.nightconfig.core.utils.FakeUnmodifiableCommentedConfig
 
getComparator() - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
getDefaultCommentMap(boolean) - Static method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
Deprecated.
getDefaultMapCreator(boolean) - Static method in class com.electronwill.nightconfig.core.AbstractConfig
Deprecated.
getDefaultMapCreator(boolean, boolean) - Static method in interface com.electronwill.nightconfig.core.Config
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
getDefaultMapCreator(boolean) - Static method in interface com.electronwill.nightconfig.core.Config
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
getEnum(String, Class<T>, EnumGetMethod) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an Enum value from the config.
getEnum(String, Class<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
getEnum(List<String>, Class<T>, EnumGetMethod) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an Enum value from the config.
getEnum(List<String>, Class<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
getEnumOrElse(String, T, EnumGetMethod) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an Enum value from the config.
getEnumOrElse(String, T) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
getEnumOrElse(List<String>, T, EnumGetMethod) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an Enum value from the config.
getEnumOrElse(List<String>, T) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
getEnumOrElse(String, Class<T>, EnumGetMethod, Supplier<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an Enum value from the config.
getEnumOrElse(String, Class<T>, Supplier<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
getEnumOrElse(List<String>, Class<T>, EnumGetMethod, Supplier<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an Enum value from the config.
getEnumOrElse(List<String>, Class<T>, Supplier<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
getExactSizeIfKnown() - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
getFile() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
getFile() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
getFile() - Method in interface com.electronwill.nightconfig.core.file.FileConfig
 
getFirst() - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Gets the first element (head) of this deque without removing it.
getFormat() - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
 
getFullType() - Method in class com.electronwill.nightconfig.core.serde.TypeConstraint
Returns a Type that represents the full type constraint.
getInt() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getInt(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.get(String) but returns a primitive int.
getInt(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.get(List) but returns a primitive int.
getIntOrElse(int) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getIntOrElse(String, int) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOrElse(String, Object) but returns a primitive int.
getIntOrElse(List<String>, int) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOrElse(List, Object) but returns a primitive int.
getIntOrElse(String, IntSupplier) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOrElse(String, Supplier) but returns a primitive int.
getIntOrElse(List<String>, IntSupplier) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOrElse(List, Supplier) but returns a primitive int.
getKey() - Method in class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
 
getKey() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getKey() - Method in class com.electronwill.nightconfig.core.utils.ObservedEntry
 
getLast() - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Gets the last element of this deque without removing it.
getLong() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getLong(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.get(String) but returns a primitive long.
getLong(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.get(List) but returns a primitive long.
getLongOrElse(long) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getLongOrElse(String, long) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOrElse(String, Object) but returns a primitive long.
getLongOrElse(List<String>, long) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOrElse(List, Object) but returns a primitive long.
getLongOrElse(String, LongSupplier) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOrElse(String, Supplier) but returns a primitive long.
getLongOrElse(List<String>, LongSupplier) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOrElse(List, Supplier) but returns a primitive long.
getNioPath() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
getNioPath() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
getNioPath() - Method in interface com.electronwill.nightconfig.core.file.FileConfig
 
getOptional() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getOptional(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an optional value from the config.
getOptional(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an optional value from the config.
getOptionalComment(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Gets an optional comment from the config.
getOptionalComment(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableCommentedConfig
Gets an optional comment from the config.
getOptionalEnum(String, Class<T>, EnumGetMethod) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an optional Enum value from the config.
getOptionalEnum(String, Class<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
getOptionalEnum(List<String>, Class<T>, EnumGetMethod) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets an optional Enum value from the config.
getOptionalEnum(List<String>, Class<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
getOptionalInt() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getOptionalInt(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOptional(String) but returns a primitive int.
getOptionalInt(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOptional(List) but returns a primitive int.
getOptionalLong() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getOptionalLong(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOptional(String) but returns a primitive long.
getOptionalLong(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Like UnmodifiableConfig.getOptional(List) but returns a primitive long.
getOrDefault(Object, ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
getOrElse(T) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getOrElse(String, T) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets a value from the config.
getOrElse(List<String>, T) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets a value from the config.
getOrElse(List<String>, Supplier<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets a value from the config.
getOrElse(String, Supplier<T>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets a value from the config.
getPath() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
 
getRaw(List<String>) - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
getRaw(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
getRaw(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
getRaw(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets a value from the config.
getRaw(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets a value from the config.
getRaw(List<String>) - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
getRawValue() - Method in class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
 
getRawValue() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
Returns the entry's value without converting NullObject.NULL_OBJECT to null.
getSatisfyingRawType() - Method in class com.electronwill.nightconfig.core.serde.TypeConstraint
Returns a Class that can satisfy the type constraint, if it can be found.
getShort() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getShort(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
 
getShort(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
 
getShortOrElse(short) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getShortOrElse(String, short) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
 
getShortOrElse(List<String>, short) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
 
getValue() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
getValue() - Method in class com.electronwill.nightconfig.core.utils.ObservedEntry
 
getWildcardMapCreator(Supplier<Map<String, Object>>) - Static method in class com.electronwill.nightconfig.core.AbstractConfig
 

H

hasCharacteristics(int) - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
hashCode() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
 
hashCode() - Method in class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
 
hashCode() - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
hashCode() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
hashCode() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Calculates the hash code of this CharsWrapper.
hashCode() - Method in class com.electronwill.nightconfig.core.NullObject
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.ObservedEntry
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.ObservedIterator
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
hashCode() - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
hasNext() - Method in class com.electronwill.nightconfig.core.utils.ObservedIterator
 
hasNext() - Method in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
hasPrevious() - Method in class com.electronwill.nightconfig.core.utils.TransformingListIterator
 

I

IncompatibleIntermediaryLevelException - Exception in com.electronwill.nightconfig.core
 
IncompatibleIntermediaryLevelException(String) - Constructor for exception com.electronwill.nightconfig.core.IncompatibleIntermediaryLevelException
 
IndentStyle - Enum in com.electronwill.nightconfig.core.io
A style of indent.
indexOf(char) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Returns the index within this CharsWrapper of the first occurrence of the specified character.
indexOf(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
indexOfFirst(char...) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Returns the index within this CharsWrapper of the first occurrence of one of the specified characters.
initEmptyFile(Path) - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Initializes an empty configuration file so that it can be parsed to an empty configuration.
initEmptyFile(File) - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Initializes an empty configuration file so that it can be parsed to an empty configuration.
initEmptyFile(WriterSupplier) - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Initializes an empty configuration file so that it can be parsed to an empty configuration.
initEmptyFile(Writer) - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Initializes an empty configuration file so that it can be parsed to an empty configuration.
inMemory() - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a CommentedConfig with format InMemoryCommentedFormat.defaultInstance().
inMemory() - Static method in interface com.electronwill.nightconfig.core.Config
Creates a Config with format InMemoryFormat.defaultInstance().
InMemoryCommentedFormat - Class in com.electronwill.nightconfig.core
The commented version of InMemoryFormat
inMemoryConcurrent() - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
inMemoryConcurrent() - Static method in interface com.electronwill.nightconfig.core.Config
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
InMemoryFormat - Class in com.electronwill.nightconfig.core
A ConfigFormat that is only in memory.
inMemoryUniversal() - Static method in interface com.electronwill.nightconfig.core.Config
Creates a Config with format InMemoryFormat.withUniversalSupport().
inMemoryUniversalConcurrent() - Static method in interface com.electronwill.nightconfig.core.Config
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
IntDeque - Class in com.electronwill.nightconfig.core.utils
A deque of integers that increases its capacity as necessary.
IntDeque() - Constructor for class com.electronwill.nightconfig.core.utils.IntDeque
Creates a new IntDeque with an initial capacity of 4.
IntDeque(int) - Constructor for class com.electronwill.nightconfig.core.utils.IntDeque
Creates a new IntDeque with the specified initial capacity.
internalCollection - Variable in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
internalIterator - Variable in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
InvalidValueException - Exception in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
InvalidValueException(String) - Constructor for exception com.electronwill.nightconfig.core.conversion.InvalidValueException
Deprecated.
 
InvalidValueException(String, Throwable) - Constructor for exception com.electronwill.nightconfig.core.conversion.InvalidValueException
Deprecated.
 
InvalidValueException(String, Object...) - Constructor for exception com.electronwill.nightconfig.core.conversion.InvalidValueException
Deprecated.
Creates a new InvalidException with a formatted message.
IoUtils - Class in com.electronwill.nightconfig.core.io
IO utilities for INTERNAL use only (do not use oustide of night-config).
IoUtils() - Constructor for class com.electronwill.nightconfig.core.io.IoUtils
 
IoUtils.IoRunnable - Interface in com.electronwill.nightconfig.core.io
Like Runnable, but with a throwable IOException.
IoUtils.RetryFailedException - Exception in com.electronwill.nightconfig.core.io
 
isCaseSensitive() - Method in enum com.electronwill.nightconfig.core.EnumGetMethod
 
isCorrect(String, Object) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Checks that a value is conform to the specification.
isCorrect(List<String>, Object) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Checks that a value is conform to the specification.
isCorrect(Config) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Checks that a configuration is conform to the specification.
isDefined(String) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Checks if an entry has been defined.
isDefined(List<String>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Checks if an entry has been defined.
isEmpty() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
isEmpty() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Checks if this CharsWrapper is empty, ie if its length is zero.
isEmpty() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Checks if the config is empty.
isEmpty() - Method in class com.electronwill.nightconfig.core.utils.IntDeque
 
isEmpty() - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
isEmpty() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
isEmpty() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
isEmpty() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
isEmpty() - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
isEmpty() - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
isInMemory() - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Checks if this format is in memory only and therefore cannot create writers nor parsers.
isInMemory() - Method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
isInMemory() - Method in class com.electronwill.nightconfig.core.InMemoryFormat
 
isInsertionOrderPreserved() - Static method in interface com.electronwill.nightconfig.core.Config
Checks if the newly created configs keep the insertion order of their content.
isNull(List<String>) - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
isNull(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
isNull() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
 
isNull(String) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Checks if the config contains a null value at some path.
isNull(List<String>) - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Checks if the config contains a null value at some path.
isOrdinalOk() - Method in enum com.electronwill.nightconfig.core.EnumGetMethod
 
iterator() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
 
iterator() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
iterator() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
iterator() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 

K

keySet() - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
keySet() - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 

L

lastIndexOf(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
length() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Gets the length (number of characters) of this builder.
length() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
 
listIterator() - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
listIterator(int) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
load() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
load() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
load() - Method in interface com.electronwill.nightconfig.core.file.FileConfig
(Re)loads this config from the file.
loadListener - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 

M

map - Variable in class com.electronwill.nightconfig.core.AbstractConfig
 
mapCreator - Variable in class com.electronwill.nightconfig.core.AbstractConfig
 
mapCreator - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
mapEntry - Variable in class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
 
mark(int) - Method in class com.electronwill.nightconfig.core.utils.FastStringReader
 
markSupported() - Method in class com.electronwill.nightconfig.core.utils.FastStringReader
 
merge(K, V, BiFunction<? super V, ? super V, ? extends V>) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
merge(K, ExternalV, BiFunction<? super ExternalV, ? super ExternalV, ? extends ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 

N

nefAction - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
newAccumulator() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
Creates a new accumulator with the same Supplier<Map> and ConfigFormat as this config.
newAccumulatorCopy() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
Creates a deep copy of this config into an StampedConfig.Accumulator.
NewlineStyle - Enum in com.electronwill.nightconfig.core.io
A style of newline.
next() - Method in class com.electronwill.nightconfig.core.utils.ObservedIterator
 
next() - Method in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
nextIndex() - Method in class com.electronwill.nightconfig.core.utils.TransformingListIterator
 
NoFormatFoundException - Exception in com.electronwill.nightconfig.core.file
 
NoFormatFoundException(String) - Constructor for exception com.electronwill.nightconfig.core.file.NoFormatFoundException
 
NoFormatFoundException(String, Throwable) - Constructor for exception com.electronwill.nightconfig.core.file.NoFormatFoundException
 
notEnoughData() - Static method in exception com.electronwill.nightconfig.core.io.ParsingException
 
NULL_OBJECT - Static variable in class com.electronwill.nightconfig.core.NullObject
Represents a "null" value, without being null.
NullObject - Class in com.electronwill.nightconfig.core
Singleton for representing null values in Configs.

O

ObjectBinder - Class in com.electronwill.nightconfig.core.conversion
Creates configurations bound to an object or class, getting its values from its fields.
ObjectBinder(boolean, boolean) - Constructor for class com.electronwill.nightconfig.core.conversion.ObjectBinder
Creates a new ObjectBinder with advanced parameters.
ObjectBinder() - Constructor for class com.electronwill.nightconfig.core.conversion.ObjectBinder
Creates a new ObjectBinder with the default parameters.
ObjectConverter - Class in com.electronwill.nightconfig.core.conversion
Deprecated.
ObjectConverter(boolean, boolean) - Constructor for class com.electronwill.nightconfig.core.conversion.ObjectConverter
Deprecated.
Creates a new ObjectConverter with advanced parameters.
ObjectConverter() - Constructor for class com.electronwill.nightconfig.core.conversion.ObjectConverter
Deprecated.
ObjectDeserializer - Class in com.electronwill.nightconfig.core.serde
Deserializes configs (UnmodifiableConfig, Config, etc.) to Java objects.
ObjectDeserializerBuilder - Class in com.electronwill.nightconfig.core.serde
Builder for ObjectDeserializer.
ObjectSerializer - Class in com.electronwill.nightconfig.core.serde
Serializes Java objects to NightConfig configurations (UnmodifiableConfig, Config, etc.).
ObjectSerializerBuilder - Class in com.electronwill.nightconfig.core.serde
Builder for ObjectSerializer.
ObservedEntry<K,V> - Class in com.electronwill.nightconfig.core.utils
 
ObservedEntry(Map.Entry<K, V>, Runnable) - Constructor for class com.electronwill.nightconfig.core.utils.ObservedEntry
 
ObservedIterator<E> - Class in com.electronwill.nightconfig.core.utils
 
ObservedIterator(Iterator<E>, Runnable) - Constructor for class com.electronwill.nightconfig.core.utils.ObservedIterator
 
ObservedMap<K,V> - Class in com.electronwill.nightconfig.core.utils
 
ObservedMap(Map<K, V>, Runnable) - Constructor for class com.electronwill.nightconfig.core.utils.ObservedMap
 
ObservedSet<K> - Class in com.electronwill.nightconfig.core.utils
 
ObservedSet(Set<K>, Runnable) - Constructor for class com.electronwill.nightconfig.core.utils.ObservedSet
 
ObservedSet2<K,KImpl extends K> - Class in com.electronwill.nightconfig.core.utils
 
ObservedSet2(Runnable, Set<KImpl>, Function<K, KImpl>) - Constructor for class com.electronwill.nightconfig.core.utils.ObservedSet2
 
of(ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a CommentedConfig of the given format.
of(Supplier<Map<String, Object>>, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a Config backed by a certain kind of map, given by a supplier.
of(ConfigFormat<? extends Config>) - Static method in interface com.electronwill.nightconfig.core.Config
Creates a Config of the given format.
of(Supplier<Map<String, Object>>, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.Config
Creates a Config backed by a certain kind of map, given by a supplier.
of(File) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Creates a new FileConfig based on the specified file and format.
of(File, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Creates a new FileConfig based on the specified file and format.
of(Path) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Creates a new FileConfig based on the specified file and format.
of(Path, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Creates a new FileConfig based on the specified file and format.
of(String) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Creates a new FileConfig based on the specified file and format.
of(String, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Creates a new FileConfig based on the specified file and format.
of(File) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Creates a new FileConfig based on the specified file.
of(File, ConfigFormat<? extends Config>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Creates a new FileConfig based on the specified file and format.
of(Path) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Creates a new FileConfig based on the specified file.
of(Path, ConfigFormat<? extends Config>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Creates a new FileConfig based on the specified file and format.
of(String) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Creates a new FileConfig based on the specified file.
of(String, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Creates a new FileConfig based on the specified file and format.
ofConcurrent(ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
ofConcurrent(ConfigFormat<? extends Config>) - Static method in interface com.electronwill.nightconfig.core.Config
Deprecated.
A concurrent HashMap is not enough to make the whole configuration robust to multi-threaded use. Prefer to use a ConcurrentConfig instead.
ofConcurrent(File) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(File, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(Path) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(Path, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(String, ConfigFormat<? extends CommentedConfig>) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(String) - Static method in interface com.electronwill.nightconfig.core.file.CommentedFileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(File) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(File, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(Path) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(Path, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(String) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
ofConcurrent(String, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.file.FileConfig
Deprecated.
All FileConfig are now thread-safe by default, backed by a ConcurrentConfig
onAutoReload(Runnable) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
When the configuration is automatically (re)loaded, calls the given listener.
onAutoSave(Runnable) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
When the configuration triggers an automatic save, calls the given listener.
onCorrect(ConfigSpec.CorrectionAction, List<String>, Object, Object) - Method in interface com.electronwill.nightconfig.core.ConfigSpec.CorrectionListener
Called when a config value is added, modified or removed by the correction.
onFileNotFound(FileNotFoundAction) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Sets the action to execute when the config's file is not found.
onLoad(Runnable) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
When the configuration is (re)loaded, calls the given listener.
onLoadFilter(ConfigLoadFilter) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
When the configuration is (re)loaded, applies the given filter first.
onSave(Runnable) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
When the configuration is saved, calls the given listener.

P

parallelStream() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
parse(Reader) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(Reader, Config, ParsingMode) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(String) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration String.
parse(String, Config, ParsingMode) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration String.
parse(InputStream) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration with the UTF-8 charset.
parse(InputStream, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(InputStream, Config, ParsingMode) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration with the UTF-8 charset.
parse(InputStream, Config, ParsingMode, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(File, FileNotFoundAction) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration with the UTF-8 charset.
parse(File, FileNotFoundAction, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(File, Config, ParsingMode, FileNotFoundAction) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration with the UTF-8 charset.
parse(File, Config, ParsingMode, FileNotFoundAction, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(Path, FileNotFoundAction) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration with the UTF-8 charset.
parse(Path, FileNotFoundAction, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(Path, Config, ParsingMode, FileNotFoundAction) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration with the UTF-8 charset.
parse(Path, Config, ParsingMode, FileNotFoundAction, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(URL) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parse(URL, Config, ParsingMode) - Method in interface com.electronwill.nightconfig.core.io.ConfigParser
Parses a configuration.
parseDouble(CharsWrapper) - Static method in class com.electronwill.nightconfig.core.io.Utils
Parses a CharsWrapper that represents a double value.
parseInt(CharsWrapper, int) - Static method in class com.electronwill.nightconfig.core.io.Utils
Parses a CharsWrapper that represents an int value in the specified base.
parseLong(CharsWrapper, int) - Static method in class com.electronwill.nightconfig.core.io.Utils
Parses a CharsWrapper that represents a long value in the specified base.
parser - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
ParsingException - Exception in com.electronwill.nightconfig.core.io
Thrown when a parsing operation fails.
ParsingException(String) - Constructor for exception com.electronwill.nightconfig.core.io.ParsingException
 
ParsingException(String, Throwable) - Constructor for exception com.electronwill.nightconfig.core.io.ParsingException
 
parsingMode - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
parsingMode(ParsingMode) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Sets the ParsingMode used for FileConfig.load().
ParsingMode - Enum in com.electronwill.nightconfig.core.io
 
Path - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
peek() - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
peek(int) - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
peek() - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Returns the next character, without moving the reading position forward.
peek(int) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Returns the next (n+1)th character, without moving the reading position forward.
peekChar() - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
peekChar(int) - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
peekChar() - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Returns the next character, without moving the reading position forward.
peekChar(int) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Returns the next (n+1)th character, without moving the reading position forward.
prepareParsing(Config) - Method in enum com.electronwill.nightconfig.core.io.ParsingMode
Prepare the config to be parsed with this mode.
preserveInsertionOrder - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
preserveInsertionOrder() - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Makes the configuration preserve the insertion order of its values.
PreserveNotNull - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
previous() - Method in class com.electronwill.nightconfig.core.utils.TransformingListIterator
 
previousIndex() - Method in class com.electronwill.nightconfig.core.utils.TransformingListIterator
 
provide(Class<?>, TypeConstraint) - Method in interface com.electronwill.nightconfig.core.serde.ValueDeserializerProvider
Provides a deserializer for a value of class valueClass and a constraint on the result type.
provide(Class<?>, SerializerContext) - Method in interface com.electronwill.nightconfig.core.serde.ValueSerializerProvider
Provides a serializer for a value of class valueClass.
pushBack(char) - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
pushBack(char) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Pushes a character back to the input, so that it will be returned by the next reading operation.
put(Class<T>, Function<? super T, Object>) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Puts a conversion function to the table.
put(Config, List<String>, Object) - Method in enum com.electronwill.nightconfig.core.io.ParsingMode
Puts (set or add) a value into the config
put(Config, String, Object) - Method in enum com.electronwill.nightconfig.core.io.ParsingMode
Puts (set or add) a value into the config
put(Map<String, Object>, String, Object) - Method in enum com.electronwill.nightconfig.core.io.ParsingMode
Puts (set or add) a value into the config
put(K, V) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
put(K, ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
putAll(UnmodifiableConfig) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
putAll(UnmodifiableConfig) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
putAll(UnmodifiableConfig) - Method in interface com.electronwill.nightconfig.core.Config
Copies all the values of a config into this config.
putAll(Map<? extends K, ? extends V>) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
putAll(Map<? extends K, ? extends ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
putAllComments(Map<String, UnmodifiableCommentedConfig.CommentNode>) - Method in interface com.electronwill.nightconfig.core.CommentedConfig
Puts the comments in the given map to this config.
putAllComments(UnmodifiableCommentedConfig) - Method in interface com.electronwill.nightconfig.core.CommentedConfig
Puts the comments in the given config to this config.
putAllComments(UnmodifiableCommentedConfig) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
putAllComments(Map<String, UnmodifiableCommentedConfig.CommentNode>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
putAllComments(Map<String, UnmodifiableCommentedConfig.CommentNode>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
putAllComments(UnmodifiableCommentedConfig) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
putAllComments(Map<String, UnmodifiableCommentedConfig.CommentNode>) - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
putAllComments(UnmodifiableCommentedConfig) - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
putAllComments(Map<String, UnmodifiableCommentedConfig.CommentNode>) - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
putAllComments(UnmodifiableCommentedConfig) - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
putIfAbsent(K, V) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
putIfAbsent(K, ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 

R

read() - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
read(int) - Method in class com.electronwill.nightconfig.core.io.ArrayInput
 
read() - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Reads the next character.
read(int) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Reads the next n characters, if possible.
read(int) - Method in class com.electronwill.nightconfig.core.io.ReaderInput
 
read() - Method in class com.electronwill.nightconfig.core.utils.FastStringReader
 
read(char[], int, int) - Method in class com.electronwill.nightconfig.core.utils.FastStringReader
 
READ_NOTHING - Static variable in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
 
readAndSkip(char[]) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Reads the next characters, skipping some characters.
readChar() - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
readChar() - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Reads the next character, throwing an exception if there is no more available data.
readCharAndSkip(char[]) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Reads the next characters, skipping some characters.
readChars(int) - Method in class com.electronwill.nightconfig.core.io.ArrayInput
 
readChars(int) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Reads the next n characters.
readChars(int) - Method in class com.electronwill.nightconfig.core.io.ReaderInput
 
readCharsUntil(char[]) - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
readCharsUntil(char[]) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Reads all the characters until a character contained in stop is reached, and returns the CharsWrapper that contains all the characters before the stop.
ReaderInput - Class in com.electronwill.nightconfig.core.io
An implementation of CharacterInput based on a Reader.
ReaderInput(Reader) - Constructor for class com.electronwill.nightconfig.core.io.ReaderInput
 
readFailed(Throwable) - Static method in exception com.electronwill.nightconfig.core.io.ParsingException
 
readTransformation - Variable in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
readTransformation - Variable in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
readUntil(char[]) - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
readUntil(char[]) - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Reads all the character until a character containde in stop is reached or there is no more available data, and returns the CharsWrapper that contains all the characters before the stop (or the end of the data).
ready() - Method in class com.electronwill.nightconfig.core.utils.FastStringReader
 
ReflectionException - Exception in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
ReflectionException(String) - Constructor for exception com.electronwill.nightconfig.core.conversion.ReflectionException
Deprecated.
 
ReflectionException(String, Throwable) - Constructor for exception com.electronwill.nightconfig.core.conversion.ReflectionException
Deprecated.
 
registerExtension(String, ConfigFormat<?>) - Static method in class com.electronwill.nightconfig.core.file.FormatDetector
Registers a ConfigFormat for a specific fileExtension.
registerExtension(String, Supplier<ConfigFormat<?>>) - Static method in class com.electronwill.nightconfig.core.file.FormatDetector
Registers a ConfigFormat's supplier for a specific fileExtension.
remove(List<String>) - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
remove(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
remove(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
remove(String) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
remove(String) - Method in interface com.electronwill.nightconfig.core.Config
Removes a value from the config.
remove(List<String>) - Method in interface com.electronwill.nightconfig.core.Config
Removes a value from the config.
remove(Class<?>) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Removes the function that is currently defined for the specified class, if any.
remove(List<String>) - Method in class com.electronwill.nightconfig.core.utils.ConfigWrapper
 
remove() - Method in class com.electronwill.nightconfig.core.utils.ObservedIterator
 
remove(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
remove(Object, Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
remove(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
remove(Object) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
remove(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
remove() - Method in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
remove(int) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
remove(Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
remove(Object, Object) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
removeAll(UnmodifiableConfig) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
removeAll(UnmodifiableConfig) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
removeAll(UnmodifiableConfig) - Method in interface com.electronwill.nightconfig.core.Config
Removes all the values of the given config from this config.
removeAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
removeAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
removeAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
removeComment() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
 
removeComment(List<String>) - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
removeComment() - Method in interface com.electronwill.nightconfig.core.CommentedConfig.Entry
Removes the entry's comment.
removeComment(String) - Method in interface com.electronwill.nightconfig.core.CommentedConfig
Removes a comment from the config.
removeComment(List<String>) - Method in interface com.electronwill.nightconfig.core.CommentedConfig
Removes a comment from the config.
removeComment(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
removeComment(List<String>) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
removeComment(List<String>) - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
removeComment(List<String>) - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
removeFirst() - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Retrieves and removes the first element (head) of this deque.
removeIf(Predicate<? super K>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
removeIf(Predicate<? super K>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
removeIf(Predicate<? super ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
removeLast() - Method in class com.electronwill.nightconfig.core.utils.IntDeque
Retrieves and removes the last element of this deque.
removeWatch(File) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
Stops watching a file.
removeWatch(Path) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
Stops watching a file.
removeWatchFuture(Path) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
 
replace(K, V, V) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
replace(K, V) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
replace(K, ExternalV, ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
replace(K, ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
replaceAll(char, char) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Replaces all occurences in this Wrapper of a character by another one.
replaceAll(BiFunction<? super K, ? super V, ? extends V>) - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
replaceAll(BiFunction<? super K, ? super ExternalV, ? extends ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
replaceContentBy(StampedConfig) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
Atomically replaces the content of this config by the content of the specified config.
replaceContentBy(StampedConfig.Accumulator) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
Atomically replaces the content of this config by the content of the specified accumulator.
replaceContentBy(SynchronizedConfig) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
Atomically replaces the content of this config by the content of the specified config.
replaceContentBy(Config) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
Atomically replaces the content of this config by the content of the specified config.
reset() - Method in class com.electronwill.nightconfig.core.utils.FastStringReader
 
resolveTypeArgumentsFor(Class<?>) - Method in class com.electronwill.nightconfig.core.serde.TypeConstraint
Inspects this type constraint and attempts to resolve the type arguments that have been applied to the given class, inside of the constraint.
retainAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
retainAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
retainAll(Collection<?>) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
retryIfAccessDenied(String, IoUtils.IoRunnable) - Static method in class com.electronwill.nightconfig.core.io.IoUtils
Run an IO operation and retry it (at most maxRetries retries) if it fails with AccessDeniedException.
retryIfAccessDenied(String, IoUtils.IoRunnable, int, long, TimeUnit) - Static method in class com.electronwill.nightconfig.core.io.IoUtils
 
run(Path, ConfigFormat<?>) - Method in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
Performs the action.
run() - Method in interface com.electronwill.nightconfig.core.io.IoUtils.IoRunnable
 

S

save() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedCommentedFileConfig
 
save() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFileConfig
 
save() - Method in interface com.electronwill.nightconfig.core.file.FileConfig
Saves this config as soon as possible.
saveListener - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
searchTransformation - Variable in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
SerdeAssert - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
Throw an exception if the annotated field does not match the given condition.
SerdeAssert.AssertThat - Enum in com.electronwill.nightconfig.core.serde.annotations
An condition that the field's value must verify during (de)serialization.
SerdeAssertException - Exception in com.electronwill.nightconfig.core.serde
Thrown when an assertion, specified on a field by an annotation of type SerdeAssert, is not verified during (de)serialization.
SerdeAssertsContainer - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
A container for multiple SerdeAssert annotations, because that's how Repeatable annotations are implemented in Java.
SerdeComment - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
Defines the comment to write to the configuration for this field.
SerdeCommentsContainer - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
A container for multiple SerdeComment annotations, because that's how Repeatable annotations are implemented in Java.
SerdeDefault - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
Defines a default value to use when serializing, deserializing, or both.
SerdeDefault.WhenValue - Enum in com.electronwill.nightconfig.core.serde.annotations
A condition that defines when to use the default value during (de)serialization.
SerdeDefaultsContainer - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
A container for multiple SerdeDefault annotations, because that's how Repeatable annotations are implemented in Java.
SerdeException - Exception in com.electronwill.nightconfig.core.serde
Thrown when an error occurs during the serialization or deserialization process.
SerdeKey - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
Sets the key to use when serializing/deserializing an element, instead of its Java name.
SerdePhase - Enum in com.electronwill.nightconfig.core.serde.annotations
A serialization/deserialization phase.
SerdeSkipDeserializingIf - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
Don't deserialize the annotated field if some condition is true.
SerdeSkipDeserializingIf.SkipDeIf - Enum in com.electronwill.nightconfig.core.serde.annotations
A condition that defines when to skip the field during deserialization.
SerdeSkipSerializingIf - Annotation Type in com.electronwill.nightconfig.core.serde.annotations
Don't serialize the annotated field if some condition is true.
SerdeSkipSerializingIf.SkipSerIf - Enum in com.electronwill.nightconfig.core.serde.annotations
A condition that defines when to skip the field during serialization.
serialize(Object, Supplier<? extends Config>) - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializer
Serializes a single value.
serialize(T, SerializerContext) - Method in interface com.electronwill.nightconfig.core.serde.ValueSerializer
 
serializeFields(Object, Supplier<C>) - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializer
Serializes an object as a Config or type C by transforming its fields into configuration entries.
serializeFields(Object, Config) - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializer
Serializes an object as a Config by transforming its fields into configuration entries.
serializeFields(Object, Config) - Method in class com.electronwill.nightconfig.core.serde.SerializerContext
Serializes an object as a Config by transforming its fields into configuration entries in destination.
SerializerContext - Class in com.electronwill.nightconfig.core.serde
Holds serialization settings and provides some base serialization logic.
serializeTransientFields() - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializerBuilder
Serialize transient fields instead of ignoring them.
serializeValue(Object) - Method in class com.electronwill.nightconfig.core.serde.SerializerContext
Serializes a single value.
set(List<String>, Object) - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
set(List<String>, Object) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
set(List<String>, Object) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
set(String, Object) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
set(String, Object) - Method in interface com.electronwill.nightconfig.core.Config
Sets a config value.
set(List<String>, Object) - Method in interface com.electronwill.nightconfig.core.Config
Sets a config value.
set(int, char) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
Sets the value of a character.
set(int, char) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Sets the value of a character.
set(List<String>, Object) - Method in class com.electronwill.nightconfig.core.utils.ConfigWrapper
 
set(int, ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
set(ExternalV) - Method in class com.electronwill.nightconfig.core.utils.TransformingListIterator
 
setComment(String) - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
 
setComment(List<String>, String) - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig
 
setComment(String) - Method in interface com.electronwill.nightconfig.core.CommentedConfig.Entry
Sets the entry's comment.
setComment(String, String) - Method in interface com.electronwill.nightconfig.core.CommentedConfig
Sets a config comment.
setComment(List<String>, String) - Method in interface com.electronwill.nightconfig.core.CommentedConfig
Sets a config comment.
setComment(List<String>, String) - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
setComment(List<String>, String) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
setComment(List<String>, String) - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
setComment(List<String>, String) - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
setInsertionOrderPreserved(boolean) - Static method in interface com.electronwill.nightconfig.core.Config
Modifies the behavior of the new configurations with regards to the preservation of the order of config values.
setValue(Object) - Method in class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
 
setValue(Object) - Method in interface com.electronwill.nightconfig.core.Config.Entry
Sets the entry's value.
setValue(V) - Method in class com.electronwill.nightconfig.core.utils.ObservedEntry
 
setWatch(File, Runnable) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
Watches a file.
setWatch(Path, Runnable) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
Watches a file.
setWatchFuture(Path, Runnable) - Method in class com.electronwill.nightconfig.core.file.FileWatcher
 
size() - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
size() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
size() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
size() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Gets the size of the config.
size() - Method in class com.electronwill.nightconfig.core.utils.IntDeque
 
size() - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
size() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
size() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
size() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
size() - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
size() - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
skip(long) - Method in class com.electronwill.nightconfig.core.utils.FastStringReader
 
skipPeeks() - Method in class com.electronwill.nightconfig.core.io.AbstractInput
 
skipPeeks() - Method in interface com.electronwill.nightconfig.core.io.CharacterInput
Skips all the character that have been peeked and not parsed yet.
SpecClassInArray - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecDoubleInRange - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecEnum - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecFloatInRange - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecIntInRange - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecLongInRange - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecNotNull - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecStringInArray - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecStringInRange - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
SpecValidator - Annotation Type in com.electronwill.nightconfig.core.conversion
Deprecated.
Use the new package com.electronwill.nightconfig.core.serde with serde.annotations.
split(String, char) - Static method in class com.electronwill.nightconfig.core.utils.StringUtils
Splits a String around each occurence of the specified character.
split(String, char, List<String>) - Static method in class com.electronwill.nightconfig.core.utils.StringUtils
Splits a String around each occurence of the specified character, and puts the result in the given List.
spliterator() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
splitLines(String) - Static method in class com.electronwill.nightconfig.core.utils.StringUtils
Splits a String around each occurence of LF and CRLF.
splitLines(String, List<String>) - Static method in class com.electronwill.nightconfig.core.utils.StringUtils
Splits a String around each occurence of LF and CRLF, and puts the result in the given list.
StampedConfig - Class in com.electronwill.nightconfig.core.concurrent
A thread-safe configuration based on a StampedLock.
StampedConfig() - Constructor for class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
StampedConfig(ConfigFormat<?>, Supplier<Map<String, Object>>) - Constructor for class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
StampedConfig.Accumulator - Class in com.electronwill.nightconfig.core.concurrent
A CommentedConfig that allows to quickly accumulate values before a StampedConfig.replaceContentBy(Accumulator).
standard() - Static method in class com.electronwill.nightconfig.core.serde.ObjectDeserializer
Creates a new ObjectDeserializer with the standard deserializers.
standard() - Static method in class com.electronwill.nightconfig.core.serde.ObjectSerializer
Creates a new ObjectSerializer with the standard deserializers.
startsWith(CharSequence) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Checks if this CharsWrapper starts with the same characters as the given CharSequence.
stop() - Method in class com.electronwill.nightconfig.core.file.FileWatcher
Stops this FileWatcher.
stopFuture() - Method in class com.electronwill.nightconfig.core.file.FileWatcher
 
storage - Variable in class com.electronwill.nightconfig.core.ConfigSpec
Stores the entries of the spec as ValueSpec values.
stream() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
StringUtils - Class in com.electronwill.nightconfig.core.utils
Fast string utilities.
subList(int, int) - Method in class com.electronwill.nightconfig.core.utils.TransformingList
 
subSequence(int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
This method copies the data so the returned CharsWrapper doesn't share its array with this CharsWrapper and is completely independant.
subView(int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a view of a part of this CharsWrapper.
subView(int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a view of a part of this CharsWrapper.
supportsComments() - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Checks if this format supports CommentedConfigs.
supportsComments() - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFormat
 
supportsComments() - Method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
supportsComments() - Method in class com.electronwill.nightconfig.core.InMemoryFormat
 
supportsType(Class<?>) - Method in interface com.electronwill.nightconfig.core.ConfigFormat
Checks if this format supports the given type of value.
supportsType(Class<?>) - Method in class com.electronwill.nightconfig.core.conversion.ConvertedFormat
 
supportsType(Class<?>) - Method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
supportsType(Class<?>) - Method in class com.electronwill.nightconfig.core.InMemoryFormat
 
sync - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
sync() - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Makes the configuration "write-synchronous", that is, its FileConfig.save() method blocks until the write operation completes.
SynchronizedConfig - Class in com.electronwill.nightconfig.core.concurrent
A configuration that is synchronized, and therefore thread-safe (reads and writes can happen in any order from any thread).
SynchronizedConfig() - Constructor for class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
SynchronizedConfig(ConfigFormat<?>, Supplier<Map<String, Object>>) - Constructor for class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
SynchronizedConfig(ConfigFormat<?>, Supplier<Map<String, Object>>, SynchronizedConfig) - Constructor for class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
system() - Static method in enum com.electronwill.nightconfig.core.io.NewlineStyle
 

T

tempConfigFileName(Path) - Static method in class com.electronwill.nightconfig.core.io.IoUtils
Generates a filename (not path) for a temporary config file, for use with WritingMode.REPLACE_ATOMIC.
THROW_ERROR - Static variable in interface com.electronwill.nightconfig.core.file.FileNotFoundAction
 
toArray() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
toArray(T[]) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet
 
toArray() - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
toArray(T[]) - Method in class com.electronwill.nightconfig.core.utils.ObservedSet2
 
toArray() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
toArray(T[]) - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
toConfig(Object, Config) - Method in class com.electronwill.nightconfig.core.conversion.ObjectConverter
Deprecated.
Converts an Object to a Config.
toConfig(Class<?>, Config) - Method in class com.electronwill.nightconfig.core.conversion.ObjectConverter
Deprecated.
Converts static fields to a Config.
toConfig(Object, Supplier<C>) - Method in class com.electronwill.nightconfig.core.conversion.ObjectConverter
toConfig(Class<?>, Supplier<C>) - Method in class com.electronwill.nightconfig.core.conversion.ObjectConverter
Deprecated.
Converts static fields to a Config.
toObject(UnmodifiableConfig, Object) - Method in class com.electronwill.nightconfig.core.conversion.ObjectConverter
Deprecated.
Converts a Config to an Object.
toObject(UnmodifiableConfig, Supplier<O>) - Method in class com.electronwill.nightconfig.core.conversion.ObjectConverter
toString() - Method in class com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
 
toString() - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
toString() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
toString() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
toString() - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
 
toString() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
toString(int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
toString(int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
toString() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
 
toString() - Method in class com.electronwill.nightconfig.core.NullObject
 
toString() - Method in class com.electronwill.nightconfig.core.serde.TypeConstraint
 
toString() - Method in class com.electronwill.nightconfig.core.utils.CommentedConfigWrapper
 
toString() - Method in class com.electronwill.nightconfig.core.utils.ConfigWrapper
 
toString() - Method in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
toString() - Method in class com.electronwill.nightconfig.core.utils.TransformingIterator
 
toString() - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
TransformingCollection<InternalV,ExternalV> - Class in com.electronwill.nightconfig.core.utils
A TransformingCollection applies "just in time" transformations to a Collection<InternalV> in order to make it like a Collection<ExternalV>.
TransformingCollection(Collection<InternalV>, Function<? super InternalV, ? extends ExternalV>, Function<? super ExternalV, ? extends InternalV>, Function<Object, Object>) - Constructor for class com.electronwill.nightconfig.core.utils.TransformingCollection
 
TransformingIterator<InternalV,ExternalV> - Class in com.electronwill.nightconfig.core.utils
A TransformingIterator applies "just in time" transformations to an Interator<InternalV> in order to make it like an Interator<ExternalV>.
TransformingIterator(Iterator<InternalV>, Function<? super InternalV, ? extends ExternalV>) - Constructor for class com.electronwill.nightconfig.core.utils.TransformingIterator
 
TransformingList<InternalV,ExternalV> - Class in com.electronwill.nightconfig.core.utils
 
TransformingList(List<InternalV>, Function<? super InternalV, ? extends ExternalV>, Function<? super ExternalV, ? extends InternalV>, Function<Object, Object>) - Constructor for class com.electronwill.nightconfig.core.utils.TransformingList
 
TransformingListIterator<InternalV,ExternalV> - Class in com.electronwill.nightconfig.core.utils
 
TransformingListIterator(ListIterator<InternalV>, Function<? super InternalV, ? extends ExternalV>, Function<? super ExternalV, ? extends InternalV>) - Constructor for class com.electronwill.nightconfig.core.utils.TransformingListIterator
 
TransformingMap<K,InternalV,ExternalV> - Class in com.electronwill.nightconfig.core.utils
A TransformingMap contains an internal Map<K, InternalV> values, and exposes the features of a Map<K, ExternalV> applying transformations to the values.
TransformingMap(Map<K, InternalV>, Function<? super InternalV, ? extends ExternalV>, Function<? super ExternalV, ? extends InternalV>, Function<Object, Object>) - Constructor for class com.electronwill.nightconfig.core.utils.TransformingMap
Create a new TransformingMap.
TransformingSet<InternalV,ExternalV> - Class in com.electronwill.nightconfig.core.utils
A TransformingSet applies "just in time" transformations to an Set<InternalV> in order to make it like an Set<ExternalV>.
TransformingSet(Set<InternalV>, Function<? super InternalV, ? extends ExternalV>, Function<? super ExternalV, ? extends InternalV>, Function<Object, Object>) - Constructor for class com.electronwill.nightconfig.core.utils.TransformingSet
 
TransformingSpliterator<InternalV,ExternalV> - Class in com.electronwill.nightconfig.core.utils
A TransformingSpliterator applies "just in time" transformations to an Spliterator<InternalV> in order to make it like an Spliterator<ExternalV>.
TransformingSpliterator(Spliterator<InternalV>, Function<? super InternalV, ? extends ExternalV>, Function<? super ExternalV, ? extends InternalV>) - Constructor for class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
trimmedView() - Method in class com.electronwill.nightconfig.core.io.CharsWrapper
Creates a trimmed view of this CharsWrapper, with any leading and trailing whitespace removed.
tryAdvance(Consumer<? super ExternalV>) - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
trySplit() - Method in class com.electronwill.nightconfig.core.utils.TransformingSpliterator
 
TypeConstraint - Class in com.electronwill.nightconfig.core.serde
Represents a type constraint that must be satisfied by the serialization/deserialization process.
TypeConstraint(Type) - Constructor for class com.electronwill.nightconfig.core.serde.TypeConstraint
Creates a new TypeConstraint from a Type.

U

undefine(String) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Undefines an entry.
undefine(List<String>) - Method in class com.electronwill.nightconfig.core.ConfigSpec
Undefines an entry.
unmodifiable() - Method in interface com.electronwill.nightconfig.core.CommentedConfig
 
unmodifiable() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
unmodifiable() - Method in interface com.electronwill.nightconfig.core.Config
Returns an Unmodifiable view of the config.
UnmodifiableCommentedConfig - Interface in com.electronwill.nightconfig.core
An unmodifiable config that supports comments.
UnmodifiableCommentedConfig.CommentNode - Class in com.electronwill.nightconfig.core
 
UnmodifiableCommentedConfig.Entry - Interface in com.electronwill.nightconfig.core
An unmodifiable commented config entry.
UnmodifiableConfig - Interface in com.electronwill.nightconfig.core
An unmodifiable (read-only) configuration that contains key/value mappings.
UnmodifiableConfig.Entry - Interface in com.electronwill.nightconfig.core
An unmodifiable config entry.
UnmodifiableConfigWrapper<C extends UnmodifiableConfig> - Class in com.electronwill.nightconfig.core.utils
 
UnmodifiableConfigWrapper(C) - Constructor for class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
unwrap() - Method in class com.electronwill.nightconfig.core.utils.FakeCommentedConfig
 
update(List<String>, Object) - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
 
update(String, Object) - Method in interface com.electronwill.nightconfig.core.Config
For scala: sets a config value.
update(List<String>, Object) - Method in interface com.electronwill.nightconfig.core.Config
For scala: sets a config value.
UTF_8_BOM - Static variable in class com.electronwill.nightconfig.core.io.AdditionalCharsets
UTF-8 charset with an optional Byte-Order Mark at the beginning.
UTF_8_OR_16 - Static variable in class com.electronwill.nightconfig.core.io.AdditionalCharsets
A charset that decodes UTF-8 (with or without BOM) or UTF-16 (with BOM), and encodes UTF-8.
Utils - Class in com.electronwill.nightconfig.core.io
Serialization utilities.

V

validate(Object, Class<T>) - Method in enum com.electronwill.nightconfig.core.EnumGetMethod
 
ValueDeserializer<T,R> - Interface in com.electronwill.nightconfig.core.serde
Turns a config value of type T into a Java object of type R.
ValueDeserializerProvider<T,R> - Interface in com.electronwill.nightconfig.core.serde
Provides ValueDeserializer to deserialize configuration values.
valueMap() - Method in class com.electronwill.nightconfig.core.AbstractConfig
 
valueMap() - Method in class com.electronwill.nightconfig.core.concurrent.StampedConfig
 
valueMap() - Method in class com.electronwill.nightconfig.core.concurrent.SynchronizedConfig
Deprecated.
This method is deprecated on SynchronizedConfig. Because a conversion is applied to the value that is added to the map with put, modifying the value after the put will, most of the time, not be reflected to the config, i.e. once something is added to the valueMap(), you loose control over it.
valueMap() - Method in interface com.electronwill.nightconfig.core.Config
Deprecated.
valueMap() may not work exactly as a regular Map for some config types, in particular ConcurrentConfig, and may be removed in a future version. Prefer to use Config.entrySet() instead.
valueMap() - Method in interface com.electronwill.nightconfig.core.UnmodifiableConfig
Deprecated.
valueMap() may not work exactly as a regular Map for some config types, in particular ConcurrentConfig, and may be removed in a future version. Prefer to use UnmodifiableConfig.entrySet() instead.
valueMap() - Method in class com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper
 
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.ConfigSpec.CorrectionAction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.EnumGetMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.io.IndentStyle
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.io.NewlineStyle
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.io.ParsingMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.io.WritingMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdeAssert.AssertThat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdeDefault.WhenValue
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdePhase
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdeSkipDeserializingIf.SkipDeIf
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdeSkipSerializingIf.SkipSerIf
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.electronwill.nightconfig.core.ConfigSpec.CorrectionAction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.EnumGetMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.io.IndentStyle
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.io.NewlineStyle
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.io.ParsingMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.io.WritingMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdeAssert.AssertThat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdeDefault.WhenValue
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdePhase
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdeSkipDeserializingIf.SkipDeIf
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.electronwill.nightconfig.core.serde.annotations.SerdeSkipSerializingIf.SkipSerIf
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class com.electronwill.nightconfig.core.utils.ObservedMap
 
values() - Method in class com.electronwill.nightconfig.core.utils.TransformingMap
 
ValueSerializer<T,R> - Interface in com.electronwill.nightconfig.core.serde
Turns a Java object of type T into a Config value of type R.
ValueSerializerProvider<V,R> - Interface in com.electronwill.nightconfig.core.serde
Provides ValueSerializer to serialize configuration values.

W

WatchingException(String, Throwable) - Constructor for exception com.electronwill.nightconfig.core.file.FileWatcher.WatchingException
 
WatchingException(Throwable) - Constructor for exception com.electronwill.nightconfig.core.file.FileWatcher.WatchingException
 
WatchingException(String) - Constructor for exception com.electronwill.nightconfig.core.file.FileWatcher.WatchingException
 
withDefaultDeserializerProvider(ValueDeserializerProvider<V, R>) - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializerBuilder
Sets the default serializer provider, which is called when no other ValueDeserializerProvider is able to give a ValueDeserializer for the incoming value and result type constraint.
withDefaultDeserializerProvider() - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializerBuilder
Enables the standard default serializer provider.
withDefaultSerializerProvider(ValueSerializerProvider<V, R>) - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializerBuilder
 
withDefaultSerializerProvider() - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializerBuilder
 
withDeserializerForClass(Class<V>, Class<R>, ValueDeserializer<? super V, ? extends R>) - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializerBuilder
Adds a ValueDeserializer that will be used to deserialize config values of type valueClass to objects of type resultClass.
withDeserializerProvider(ValueDeserializerProvider<V, R>) - Method in class com.electronwill.nightconfig.core.serde.ObjectDeserializerBuilder
Adds a ValueDeserializerProvider that provides ValueDeserializer to deserialize config values.
withSerializerForClass(Class<V>, ValueSerializer<? super V, ? extends R>) - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializerBuilder
 
withSerializerForExactClass(Class<V>, ValueSerializer<? super V, ? extends R>) - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializerBuilder
 
withSerializerProvider(ValueSerializerProvider<V, R>) - Method in class com.electronwill.nightconfig.core.serde.ObjectSerializerBuilder
 
withSupport(Predicate<Class<?>>) - Static method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
withSupport(Predicate<Class<?>>) - Static method in class com.electronwill.nightconfig.core.InMemoryFormat
 
withUniversalSupport() - Static method in class com.electronwill.nightconfig.core.InMemoryCommentedFormat
 
withUniversalSupport() - Static method in class com.electronwill.nightconfig.core.InMemoryFormat
 
wrap(Map<String, Object>, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.CommentedConfig
Creates a CommentedConfig backed by a Map.
wrap(Map<String, Object>, ConfigFormat<?>) - Static method in interface com.electronwill.nightconfig.core.Config
Creates a Config backed by a Map.
wrap(UnmodifiableConfig) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an UnmodifiableConfig that converts "just-in-time" the values of the specified UnmodifiableConfig.
wrapRead(Config) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an Config that converts "just-in-time" the values that are read from the specified Config.
wrapRead(CommentedConfig) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an Config that converts "just-in-time" the values that are read from the specified Config.
wrapRead(FileConfig) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an Config that converts "just-in-time" the values that are read from the specified Config.
wrapRead(CommentedFileConfig) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an Config that converts "just-in-time" the values that are read from the specified Config.
wrapWrite(Config, Predicate<Class<?>>) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an Config that converts "just-in-time" the values that are put into the specified Config.
wrapWrite(CommentedConfig, Predicate<Class<?>>) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an Config that converts "just-in-time" the values that are put into the specified Config.
wrapWrite(FileConfig, Predicate<Class<?>>) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an Config that converts "just-in-time" the values that are put into the specified Config.
wrapWrite(CommentedFileConfig, Predicate<Class<?>>) - Method in class com.electronwill.nightconfig.core.conversion.ConversionTable
Returns an Config that converts "just-in-time" the values that are put into the specified Config.
write(char) - Method in interface com.electronwill.nightconfig.core.io.CharacterOutput
Writes a character.
write(char...) - Method in interface com.electronwill.nightconfig.core.io.CharacterOutput
Writes an array of characters.
write(char[], int, int) - Method in interface com.electronwill.nightconfig.core.io.CharacterOutput
Writes a portion of an array of characters.
write(String) - Method in interface com.electronwill.nightconfig.core.io.CharacterOutput
Writes all the characters in the given String.
write(String, int, int) - Method in interface com.electronwill.nightconfig.core.io.CharacterOutput
Writes a portion of a String.
write(CharsWrapper) - Method in interface com.electronwill.nightconfig.core.io.CharacterOutput
Writes all the characters in the given CharsWrapper.
write(int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
write(char) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
write(char...) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
write(char[], int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
write(String) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
write(String, int, int) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
write(CharsWrapper) - Method in class com.electronwill.nightconfig.core.io.CharsWrapper.Builder
 
write(UnmodifiableConfig, Writer) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration.
write(UnmodifiableConfig, OutputStream, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration.
write(UnmodifiableConfig, OutputStream) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration.
write(UnmodifiableConfig, Path, WritingMode) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration.
write(UnmodifiableConfig, Path, WritingMode, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration.
write(UnmodifiableConfig, File, WritingMode) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration.
write(UnmodifiableConfig, File, WritingMode, Charset) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration.
write(UnmodifiableConfig, URL) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration.
write(char) - Method in class com.electronwill.nightconfig.core.io.WriterOutput
 
write(char[], int, int) - Method in class com.electronwill.nightconfig.core.io.WriterOutput
 
write(String, int, int) - Method in class com.electronwill.nightconfig.core.io.WriterOutput
 
writer - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
WriterOutput - Class in com.electronwill.nightconfig.core.io
Writes the characters in a Writer.
WriterOutput(Writer) - Constructor for class com.electronwill.nightconfig.core.io.WriterOutput
 
WriterSupplier - Interface in com.electronwill.nightconfig.core.utils
 
writeToString(UnmodifiableConfig) - Method in interface com.electronwill.nightconfig.core.io.ConfigWriter
Writes a configuration to a String.
writeTransformation - Variable in class com.electronwill.nightconfig.core.utils.TransformingCollection
 
WritingException - Exception in com.electronwill.nightconfig.core.io
Thrown whan a writing operation fails.
WritingException(String) - Constructor for exception com.electronwill.nightconfig.core.io.WritingException
 
WritingException(String, Throwable) - Constructor for exception com.electronwill.nightconfig.core.io.WritingException
 
WritingException(Throwable) - Constructor for exception com.electronwill.nightconfig.core.io.WritingException
 
writingMode - Variable in class com.electronwill.nightconfig.core.file.GenericBuilder
 
writingMode(WritingMode) - Method in class com.electronwill.nightconfig.core.file.GenericBuilder
Sets the WritingMode used for FileConfig.save().
WritingMode - Enum in com.electronwill.nightconfig.core.io
How to write a config to a file.
A B C D E F G H I K L M N O P R S T U V W 
Skip navigation links