Package space.arim.dazzleconf
Class ConfigurationOptions
java.lang.Object
space.arim.dazzleconf.ConfigurationOptions
Options for loading, validating, and writing configuration values
- Author:
- A248
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether single element collections are created for config values which were not originally collectionsstatic ConfigurationOptionsdefaults()Returns the default configuration optionsbooleanDeprecated.booleanGets the configuration sorterGets the configuration value serialisers.Deprecated.UsegetConfigurationSorter()insteadDeprecated.Value validators are deprecated and will be removed in DazzleConf 2.0.inthashCode()booleanWhether enums are strictly parsed.toString()
-
Method Details
-
defaults
Returns the default configuration options- Returns:
- the default config options
-
getSerialisers
Gets the configuration value serialisers. Serialisers can also be specified byConfSerialisers, which are not included here- Returns:
- the value serialisers, never
null
-
getValidators
Deprecated.Value validators are deprecated and will be removed in DazzleConf 2.0.Gets an immutable map of value validators, keyed by the configuration key to which they apply. Validators can also be specifiedConfValidator, which are not included here- Returns:
- the map of value validators, never
null
-
getSorter
Deprecated.UsegetConfigurationSorter()insteadGets theConfigurationSorter, ornullfor none- Returns:
- the sorter or
nullif there is none
-
getConfigurationSorter
Gets the configuration sorter- Returns:
- the sorter, or an empty optional if there is none
-
strictParseEnums
public boolean strictParseEnums()Whether enums are strictly parsed. SeeConfigurationOptions.Builder.setStrictParseEnums(boolean)- Returns:
- true if strictly parsed, false otherwise
-
createSingleElementCollections
public boolean createSingleElementCollections()Whether single element collections are created for config values which were not originally collections- Returns:
- true to create single element collections, false otherwise
-
dottedPathInConfKey
public boolean dottedPathInConfKey()Deprecated.SeeConfigurationOptions.Builder.setDottedPathInConfKey(boolean)for information about this deprecated option.- Returns:
- whether dotted key paths in
ConfKeyare permitted
-
hashCode
public int hashCode() -
equals
-
toString
-
ConfigurationOptions.Builder.setDottedPathInConfKey(boolean)