Class SimpleCollectionCreator<V,C extends Collection<V>,RESULT extends CollectionConfigValue<V,C,?>>
java.lang.Object
cc.carm.lib.configuration.builder.collection.SimpleCollectionCreator<V,C,RESULT>
- Direct Known Subclasses:
ConfigListCreator
public class SimpleCollectionCreator<V,C extends Collection<V>,RESULT extends CollectionConfigValue<V,C,?>>
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
SimpleCollectionCreator.Section<V,
C extends Collection<V>, RESULT extends CollectionConfigValue<V, C, ?>> static class
SimpleCollectionCreator.Source<SOURCE,
V, C extends Collection<V>, RESULT extends CollectionConfigValue<V, C, ?>> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleCollectionCreator
(@NotNull ValueType<V> type, @NotNull Supplier<? extends C> defaultConstructor, @NotNull SimpleCollectionCreator.CollectionValueFactory<V, C, RESULT> factory) -
Method Summary
Modifier and TypeMethodDescriptionstatic <V,
C extends Collection<V>, RESULT extends CollectionConfigValue<V, C, ?>>
@NotNull SimpleCollectionCreator<V, C, RESULT> create
(@NotNull ValueType<V> type, @NotNull Supplier<? extends C> defaultConstructor, @NotNull SimpleCollectionCreator.CollectionValueFactory<V, C, RESULT> factory) <S> @NotNull SimpleCollectionCreator.Source
<S, V, C, RESULT> <S> @NotNull SimpleCollectionCreator.Source
<S, V, C, RESULT>
-
Field Details
-
defaultConstructor
-
type
-
factory
@NotNull protected final @NotNull SimpleCollectionCreator.CollectionValueFactory<V,C extends Collection<V>, factoryRESULT extends CollectionConfigValue<V, C, ?>>
-
-
Constructor Details
-
SimpleCollectionCreator
-
-
Method Details
-
create
@NotNull public static <V,C extends Collection<V>, @NotNull SimpleCollectionCreator<V,RESULT extends CollectionConfigValue<V, C, ?>> C, createRESULT> (@NotNull @NotNull ValueType<V> type, @NotNull @NotNull Supplier<? extends C> defaultConstructor, @NotNull @NotNull SimpleCollectionCreator.CollectionValueFactory<V, C, RESULT> factory) -
from
@NotNull public <S> @NotNull SimpleCollectionCreator.Source<S,V, fromC, RESULT> (@NotNull @NotNull Class<S> sourceType) -
from
@NotNull public <S> @NotNull SimpleCollectionCreator.Source<S,V, fromC, RESULT> (@NotNull @NotNull ValueType<S> sourceType) -
fromObject
-
fromString
-
fromSection
-