类 ConfiguredList<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<List<V>,V>
cc.carm.lib.configuration.value.standard.ConfiguredList<V>
- 所有已实现的接口:
Iterable<V>,Collection<V>,List<V>
-
字段概要
字段从类继承的字段 cc.carm.lib.configuration.value.impl.CachedConfigValue
cachedValue, parsedTime从类继承的字段 cc.carm.lib.configuration.value.ValueManifest
defaultSupplier, holder, initializer, path, type, validator -
构造器概要
构造器构造器说明ConfiguredList(@NotNull ValueManifest<List<V>, V> manifest, @NotNull Supplier<? extends List<V>> constructor, @NotNull ValueAdapter<V> paramAdapter) -
方法概要
修饰符和类型方法说明@NotNull ValueAdapter<V>adapter()voidbooleanbooleanaddAll(int index, @NotNull Collection<? extends V> c) booleanaddAll(@NotNull Collection<? extends V> c) static <T> @NotNull ConfigListBuilder<T>static <T> @NotNull ConfigListBuilder<T>voidclear()booleanbooleancontainsAll(@NotNull Collection<?> c) copy()get()Gets the configured value (i.e., the value read from the source).get(int index) <T> TintbooleanisEmpty()iterator()int@NotNull ListIterator<V>@NotNull ListIterator<V>listIterator(int index) @NotNull ConfiguredList<V>static <T> @NotNull ConfiguredList<T>of(T value, @NotNull T... values) @Nullable ValueParser<V>parser()remove(int index) booleanbooleanremoveAll(@NotNull Collection<?> c) booleanretainAll(@NotNull Collection<?> c) @Nullable ValueSerializer<V>voidSets the value of this configuration.intsize()subList(int fromIndex, int toIndex) @NotNull Object @NotNull []toArray()<T> @NotNull T @NotNull []toArray(@NotNull T[] a) static <T> @NotNull SourceListBuilder<T,T> static <T> @NotNull SourceListBuilder<T,T> 从类继承的方法 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.Collection
parallelStream, removeIf, stream, toArray从接口继承的方法 java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
字段详细资料
-
constructor
-
paramAdapter
-
-
构造器详细资料
-
ConfiguredList
public ConfiguredList(@NotNull @NotNull ValueManifest<List<V>, V> manifest, @NotNull @NotNull Supplier<? extends List<V>> constructor, @NotNull @NotNull ValueAdapter<V> paramAdapter)
-
-
方法详细资料
-
builderOf
-
builderOf
@NotNull public static <T> @NotNull ConfigListBuilder<T> builderOf(@NotNull @NotNull ValueType<T> type) -
with
@NotNull public static <T> @NotNull SourceListBuilder<T,T> with(@NotNull @NotNull Class<T> registeredType) -
with
@NotNull public static <T> @NotNull SourceListBuilder<T,T> with(@NotNull @NotNull ValueType<T> registeredType) -
of
@SafeVarargs @NotNull public static <T> @NotNull ConfiguredList<T> of(@NotNull T value, @NotNull @NotNull T... values) -
adapter
- 返回:
- Adapter of this value.
-
paramType
-
parser
- 返回:
- Value's parser, parse base object to value.
-
serializer
- 返回:
- Value's serializer, parse value to base object.
-
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在类中ConfigValue<List<V>,V> - 返回:
- Configured value
-
set
从类复制的说明:ConfigValueSets the value of this configuration.
After setting, the configuration file will NOT be saved automatically. To save, callConfigurationHolder.save().- 指定者:
set在类中ConfigValue<List<V>,V> - 参数:
list- The value to set
-
get
-
copy
-
handle
-
modify
-
set
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
@NotNull public <T> @NotNull T @NotNull [] toArray(@NotNull @NotNull T[] a) -
containsAll
- 指定者:
containsAll在接口中Collection<V>- 指定者:
containsAll在接口中List<V>
-
add
-
add
-
addAll
-
addAll
-
remove
-
remove
-
removeAll
-
retainAll
-
clear
public void clear() -
indexOf
-
lastIndexOf
- 指定者:
lastIndexOf在接口中List<V>
-
listIterator
- 指定者:
listIterator在接口中List<V>
-
listIterator
- 指定者:
listIterator在接口中List<V>
-
subList
-