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 optionsbooleanGets the configuration sorterGets the configuration value serialisers.Deprecated.Gets an immutable map of value validators, keyed by the configuration key to which they apply.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
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
-
hashCode
public int hashCode() -
equals
-
toString
-
getConfigurationSorter()instead