Index
All Classes and Interfaces|All Packages
A
- adapter() - Element in annotation interface yt.sehrschlecht.classconfig.serialization.annotation.SerializedOption
- ALL_ARGS - Enum constant in enum class yt.sehrschlecht.classconfig.serialization.annotation.SerializableClass.ConstructorType
-
A constructor with all fields as arguments will be used.
C
- comments() - Element in annotation interface yt.sehrschlecht.classconfig.options.ConfigOption
- ConfigOption - Annotation Interface in yt.sehrschlecht.classconfig.options
-
Defines a config option.
- constructorType() - Element in annotation interface yt.sehrschlecht.classconfig.serialization.annotation.SerializableClass
D
- DefaultSerializationAdapter<T> - Class in yt.sehrschlecht.classconfig.serialization
-
The default adapter for serialization.
- DefaultSerializationAdapter(Class<?>) - Constructor for class yt.sehrschlecht.classconfig.serialization.DefaultSerializationAdapter
-
Creates a new instance of the adapter.
- defaultValues - Variable in class yt.sehrschlecht.classconfig.SimpleClassConfig
- deleteOldKeys() - Element in annotation interface yt.sehrschlecht.classconfig.options.MigrateOption
- deserialize(Map<Object, Object>) - Method in class yt.sehrschlecht.classconfig.serialization.DefaultSerializationAdapter
-
Deserializes the given map into instance of this type.
- document - Variable in class yt.sehrschlecht.classconfig.SimpleClassConfig
F
- file - Variable in class yt.sehrschlecht.classconfig.SimpleClassConfig
G
- getFields() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
- getKey(Field, ConfigOption) - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
- getOptions() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
- getValue(Field) - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
I
- ignoredTypes() - Element in annotation interface yt.sehrschlecht.classconfig.serialization.annotation.SerializeAllFields
- initialize() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Initializes the config and field values.
K
- key() - Element in annotation interface yt.sehrschlecht.classconfig.options.ConfigOption
- key() - Element in annotation interface yt.sehrschlecht.classconfig.serialization.annotation.Serialize
L
- logger - Variable in class yt.sehrschlecht.classconfig.serialization.DefaultSerializationAdapter
- logger - Variable in class yt.sehrschlecht.classconfig.SimpleClassConfig
M
- migrateOption(Field, ConfigOption, MigrateOption) - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Migrates a config option from an old key to a new key.
- MigrateOption - Annotation Interface in yt.sehrschlecht.classconfig.options
-
Used to set old keys for a config option that has been renamed.
N
- NO_ARGS - Enum constant in enum class yt.sehrschlecht.classconfig.serialization.annotation.SerializableClass.ConstructorType
-
A constructor with 0 arguments will be used.
O
- oldKeys() - Element in annotation interface yt.sehrschlecht.classconfig.options.MigrateOption
R
- reload() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Reloads the config from the file.
- resetOption(String) - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Resets a config option to its default value.
- resetToDefaultValues() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Sets all config options in the config to their default values.
S
- save() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Saves the values of all fields to the config file.
- SerializableClass - Annotation Interface in yt.sehrschlecht.classconfig.serialization.annotation
-
Defines a class as serializable.
- SerializableClass.ConstructorType - Enum Class in yt.sehrschlecht.classconfig.serialization.annotation
-
Constructor types.
- serialize(T) - Method in class yt.sehrschlecht.classconfig.serialization.DefaultSerializationAdapter
-
Serializes the given instance into a map.
- Serialize - Annotation Interface in yt.sehrschlecht.classconfig.serialization.annotation
-
Defines a field as serializable.
- SerializeAllFields - Annotation Interface in yt.sehrschlecht.classconfig.serialization.annotation
-
Defines that all fields of a class should be serialized.
- SerializedOption - Annotation Interface in yt.sehrschlecht.classconfig.serialization.annotation
-
Defines an option as serializable.
- setComments() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Sets the comments of all config options in the config, if they are set via the
ConfigOption
annotation. - SimpleClassConfig - Class in yt.sehrschlecht.classconfig
-
A simple class config can be used to write/read data to/from a yaml config file.
- SimpleClassConfig(File) - Constructor for class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Creates a new instance of the config.
T
- type() - Element in annotation interface yt.sehrschlecht.classconfig.options.ConfigOption
-
Deprecated, for removal: This API element is subject to removal in a future version.Redundant parameter. Will be removed in the stable release (1.0)
- typeClass - Variable in class yt.sehrschlecht.classconfig.serialization.DefaultSerializationAdapter
U
- updateFields() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Updates all fields of the config to reflect the values in the config file.
- upgrade() - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Options are migrated (if necessary) and the comments are set.
V
- valueOf(String) - Static method in enum class yt.sehrschlecht.classconfig.serialization.annotation.SerializableClass.ConstructorType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class yt.sehrschlecht.classconfig.serialization.annotation.SerializableClass.ConstructorType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verifyOption(Field, ConfigOption) - Method in class yt.sehrschlecht.classconfig.SimpleClassConfig
-
Verifies that the type of a field matches the type specified in the
ConfigOption
annotation.
Y
- yt.sehrschlecht.classconfig - package yt.sehrschlecht.classconfig
- yt.sehrschlecht.classconfig.options - package yt.sehrschlecht.classconfig.options
- yt.sehrschlecht.classconfig.serialization - package yt.sehrschlecht.classconfig.serialization
- yt.sehrschlecht.classconfig.serialization.annotation - package yt.sehrschlecht.classconfig.serialization.annotation
All Classes and Interfaces|All Packages