类 ConfiguredMap<K,V>
java.lang.Object
cc.carm.lib.configuration.value.ValueManifest<T,U>
cc.carm.lib.configuration.value.ConfigValue<T,U>
cc.carm.lib.configuration.value.impl.CachedConfigValue<Map<K,V>,V>
cc.carm.lib.configuration.value.standard.ConfiguredMap<K,V>
- 所有已实现的接口:
Map<K,V>
-
嵌套类概要
-
字段概要
字段从类继承的字段 cc.carm.lib.configuration.value.impl.CachedConfigValue
cachedValue, parsedTime从类继承的字段 cc.carm.lib.configuration.value.ValueManifest
defaultSupplier, holder, initializer, path, type, validator -
构造器概要
构造器构造器说明ConfiguredMap(@NotNull ValueManifest<Map<K, V>, V> manifest, @NotNull Supplier<? extends Map<K, V>> constructor, @NotNull ValueAdapter<K> keyAdapter, @NotNull ValueAdapter<V> valueAdapter) -
方法概要
修饰符和类型方法说明static <K,V> ConfigMapCreator<K, V> static <K,V> ConfigMapCreator<K, V> static <V> ConfigMapCreator<String,V> voidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()get()Gets the configured value (i.e., the value read from the source).getNotNull(K key) <T> TbooleanisEmpty()@NotNull ValueAdapter<K>keySet()keyType()@NotNull ConfiguredMap<K,V> static <K,V> ConfiguredMap<K, V> of(@NotNull Supplier<? extends Map<K, V>> constructor, @NotNull ValueAdapter<K> keyAdapter, @NotNull ValueAdapter<V> valueAdapter) voidvoidSets the value of this configuration.intsize()@NotNull ValueAdapter<V>@NotNull Collection<V>values()从类继承的方法 cc.carm.lib.configuration.value.impl.CachedConfigValue
cacheExpired, getCachedOrDefault, getCachedOrDefault, getCachedValue, getDefaultFirst, parserFor, serializerFor, updateCache从类继承的方法 cc.carm.lib.configuration.value.ConfigValue
getNotNull, getOrDefault, isDefault, optional, resolve, save, setDefault, setDefault从类继承的方法 cc.carm.lib.configuration.value.ValueManifest
config, defaults, defaults, defaults, getData, hasDefaults, holder, holder, initialize, initialize, metadata, path, path, setData, throwing, throwing, type, validate, validator, validator, withValidated从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
字段详细资料
-
constructor
-
keyAdapter
-
valueAdapter
-
-
构造器详细资料
-
ConfiguredMap
public ConfiguredMap(@NotNull @NotNull ValueManifest<Map<K, V>, V> manifest, @NotNull @NotNull Supplier<? extends Map<K, V>> constructor, @NotNull @NotNull ValueAdapter<K> keyAdapter, @NotNull @NotNull ValueAdapter<V> valueAdapter)
-
-
方法详细资料
-
builderOf
-
builderOf
public static <K,V> ConfigMapCreator<K,V> builderOf(@NotNull @NotNull ValueType<K> keyType, @NotNull @NotNull ValueType<V> valueType) -
builderOf
public static <K,V> ConfigMapCreator<K,V> builderOf(@NotNull @NotNull Class<K> keyType, @NotNull @NotNull Class<V> valueType) -
of
public static <K,V> ConfiguredMap<K,V> of(@NotNull @NotNull Supplier<? extends Map<K, V>> constructor, @NotNull @NotNull ValueAdapter<K> keyAdapter, @NotNull @NotNull ValueAdapter<V> valueAdapter) -
keyAdapter
-
keyType
-
valueAdapter
-
valueType
-
get
从类复制的说明:ConfigValueGets the configured value (i.e., the value read from the source).
If no default value was written during initialization, you can use theConfigValue.getOrDefault()method to obtain the default value when this value is empty. -
get
-
getNotNull
-
set
从类复制的说明:ConfigValueSets the value of this configuration.
After setting, the configuration file will NOT be saved automatically. To save, callConfigurationHolder.save(). -
handle
-
modify
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- 指定者:
containsKey在接口中Map<K,V>
-
containsValue
- 指定者:
containsValue在接口中Map<K,V>
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-