类 ConfigurationMetaHolder
java.lang.Object
cc.carm.lib.configuration.source.meta.ConfigurationMetaHolder
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleancontains(@NotNull ConfigurationMetadata<?> type) <V> Vget(@NotNull ConfigurationMetadata<V> type) Get the value of option.<V> Vget(@NotNull ConfigurationMetadata<V> type, Supplier<@Nullable V> defaultValue) Get the value of option.<V> Vget(@NotNull ConfigurationMetadata<V> type, V defaultValue) Get the value of option.<V> Vset(@NotNull ConfigurationMetadata<V> type, V value) Set the value of meta, if the value is null, the meta will be removed.<V> voidsetIfAbsent(@NotNull ConfigurationMetadata<V> type, V value) Set the value of meta, if the value is null, the meta will not be changed.<V> VsetIfPresent(@NotNull ConfigurationMetadata<V> type, V value) Set the value of meta, if the value is null, the meta will not be changed.@NotNull Map<ConfigurationMetadata<?>,Object> values()
-
字段详细资料
-
values
-
-
构造器详细资料
-
ConfigurationMetaHolder
public ConfigurationMetaHolder() -
ConfigurationMetaHolder
-
-
方法详细资料
-
values
-
get
@Contract("_,!null -> !null") @Nullable public <V> V get(@NotNull @NotNull ConfigurationMetadata<V> type, @Nullable V defaultValue) Get the value of option.- 类型参数:
V- Value type- 参数:
type-ConfigurationMetadatadefaultValue- Default value if the value of option is not set.- 返回:
- Value of option
-
get
@Contract("_,!null -> !null") @Nullable public <V> V get(@NotNull @NotNull ConfigurationMetadata<V> type, Supplier<@Nullable V> defaultValue) Get the value of option.- 类型参数:
V- Value type- 参数:
type-ConfigurationMetadatadefaultValue- Default value if the value of option is not set.- 返回:
- Value of option
-
get
Get the value of option.- 类型参数:
V- Value type- 参数:
type-ConfigurationMetadata- 返回:
- Value of option
-
contains
-
set
Set the value of meta, if the value is null, the meta will be removed.
Will only be changed in current holder.- 类型参数:
V- Value type- 参数:
type-ConfigurationMetadatavalue- Value of meta- 返回:
- Previous value of meta
-
setIfAbsent
Set the value of meta, if the value is null, the meta will not be changed.
Will only be changed in current holder.- 类型参数:
V- Value type- 参数:
type-ConfigurationMetadatavalue- Value of meta
-
setIfPresent
@Nullable public <V> V setIfPresent(@NotNull @NotNull ConfigurationMetadata<V> type, @Nullable V value) Set the value of meta, if the value is null, the meta will not be changed.
Will only be changed in current holder.- 类型参数:
V- Value type- 参数:
type-ConfigurationMetadatavalue- Value of meta- 返回:
- Previous value of meta
-