Class ConfiguredList<V>
java.lang.Object
cc.carm.lib.configuration.value.ValueManifest<List<V>,V>
cc.carm.lib.configuration.value.ConfigValue<List<V>,V>
cc.carm.lib.configuration.value.impl.CachedConfigValue<List<V>,V>
cc.carm.lib.configuration.value.impl.CollectionConfigValue<V,List<V>,ConfiguredList<V>>
cc.carm.lib.configuration.value.standard.ConfiguredList<V>
- All Implemented Interfaces:
Iterable<V>,Collection<V>,List<V>,SequencedCollection<V>
public class ConfiguredList<V>
extends CollectionConfigValue<V,List<V>,ConfiguredList<V>>
implements List<V>
-
Field Summary
Fields inherited from class cc.carm.lib.configuration.value.impl.CollectionConfigValue
constructor, paramAdapterFields inherited from class cc.carm.lib.configuration.value.impl.CachedConfigValue
cachedValue, parsedTimeFields inherited from class cc.carm.lib.configuration.value.ValueManifest
defaultSupplier, holder, initializer, path, type, validator -
Constructor Summary
ConstructorsConstructorDescriptionConfiguredList(@NotNull ValueManifest<List<V>, V> manifest, @NotNull Supplier<? extends List<V>> constructor, @NotNull ValueAdapter<V> paramAdapter) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, @NotNull Collection<? extends V> c) static <T> @NotNull ConfigListCreator<T> static <T> @NotNull ConfigListCreator<T> get(int index) intint@NotNull ListIterator<V> @NotNull ListIterator<V> listIterator(int index) static <T> @NotNull ConfiguredList<T> of(T value, T... values) remove(int index) @NotNull ConfiguredList<V> self()subList(int fromIndex, int toIndex) static <T> SimpleCollectionCreator.Source<Object, T, List<T>, ConfiguredList<T>> static <T> SimpleCollectionCreator.Source<Object, T, List<T>, ConfiguredList<T>> Methods inherited from class cc.carm.lib.configuration.value.impl.CollectionConfigValue
adapter, add, addAll, clear, contains, containsAll, copy, get, handle, isEmpty, iterator, modify, paramType, parser, remove, removeAll, retainAll, serializer, set, size, toArray, toArrayMethods inherited from class cc.carm.lib.configuration.value.impl.CachedConfigValue
cacheExpired, getCachedOrDefault, getCachedOrDefault, getCachedValue, getDefaultFirst, parserFor, serializerFor, updateCacheMethods inherited from class cc.carm.lib.configuration.value.ConfigValue
getNotNull, getOr, getOrDefault, isDefault, optional, resolve, save, setDefault, setDefaultMethods inherited from class 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, withValidatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
ConfiguredList
public ConfiguredList(@NotNull @NotNull ValueManifest<List<V>, V> manifest, @NotNull @NotNull Supplier<? extends List<V>> constructor, @NotNull @NotNull ValueAdapter<V> paramAdapter)
-
-
Method Details
-
builderOf
-
builderOf
@NotNull public static <T> @NotNull ConfigListCreator<T> builderOf(@NotNull @NotNull ValueType<T> type) -
with
@NotNull public static <T> SimpleCollectionCreator.Source<Object,T, withList<T>, ConfiguredList<T>> (@NotNull @NotNull Class<T> registeredType) -
with
@NotNull public static <T> SimpleCollectionCreator.Source<Object,T, withList<T>, ConfiguredList<T>> (@NotNull @NotNull ValueType<T> registeredType) -
of
@SafeVarargs @NotNull public static <T> @NotNull ConfiguredList<T> of(@NotNull T value, @NotNull T... values) -
get
-
self
- Specified by:
selfin classCollectionConfigValue<V,List<V>, ConfiguredList<V>>
-
set
-
add
-
addAll
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<V>
-
listIterator
- Specified by:
listIteratorin interfaceList<V>
-
listIterator
- Specified by:
listIteratorin interfaceList<V>
-
subList
-