类的使用
cc.carm.lib.configuration.source.option.ConfigurationOption
使用ConfigurationOption的程序包
程序包
说明
-
cc.carm.lib.configuration.commentable中ConfigurationOption的使用
修饰符和类型字段说明static final ConfigurationOption<Boolean>CommentableOptions.COMMENT_EMPTY_VALUEWhether to comment values name that are not exists in configuration and no default value offered. -
cc.carm.lib.configuration.source中ConfigurationOption的使用
修饰符和类型方法说明<O> SELFConfigurationFactory.option(ConfigurationOption<O> type, Consumer<O> modifier) <O> SELFConfigurationFactory.option(ConfigurationOption<O> type, Supplier<O> value) <O> SELFConfigurationFactory.option(ConfigurationOption<O> type, O value) <O> OConfigurationHolder.option(@NotNull ConfigurationOption<O> option) -
cc.carm.lib.configuration.source.option中ConfigurationOption的使用
修饰符和类型字段说明static final ConfigurationOption<Charset>FileConfigOptions.CHARSETThe charset of the file.static final ConfigurationOption<Boolean>FileConfigOptions.COPY_DEFAULTSWhether to copy files from resource if exists.static final ConfigurationOption<Boolean>StandardOptions.LOAD_SUB_CLASSESWhether to load subclasses of configuration class.static final ConfigurationOption<Character>StandardOptions.PATH_SEPARATORThe configuration path separator.static final ConfigurationOption<Boolean>StandardOptions.PRELOADWhether to pre parse the config values, may good to set true if you want to keep the config format.static final ConfigurationOption<Boolean>StandardOptions.SET_DEFAULTSWhether to set and save default values if offered and not exists in configuration.修饰符和类型方法说明static <T> ConfigurationOption<T>static <T> ConfigurationOption<T>ConfigurationOption.of(T defaultValue) 返回变量类型为ConfigurationOption的类型的cc.carm.lib.configuration.source.option中的方法修饰符和类型方法说明<V> VConfigurationOptionHolder.clear(@NotNull ConfigurationOption<V> type) Set the value of option to option'sdefaults().<V> VConfigurationOptionHolder.get(@NotNull ConfigurationOption<V> type) Get the value of option.<V> VConfigurationOptionHolder.set(@NotNull ConfigurationOption<V> type, V value) Set the value of option.修饰符和类型方法说明static @NotNull ConfigurationOptionHolderConfigurationOptionHolder.of(@NotNull Map<ConfigurationOption<?>, Object> options) 类型变量类型为ConfigurationOption的cc.carm.lib.configuration.source.option中的构造器参数