T - the type of the elements in the arraypublic static class PropertyBuilder.ArrayPropertyBuilder<T> extends PropertyBuilder<T,T[],PropertyBuilder.ArrayPropertyBuilder<T>>
ArrayProperty.PropertyBuilder.ArrayPropertyBuilder<T>, PropertyBuilder.CreateFunction<K,T>, PropertyBuilder.InlineArrayPropertyBuilder<T>, PropertyBuilder.ListPropertyBuilder<T>, PropertyBuilder.MapPropertyBuilder<T>, PropertyBuilder.SetPropertyBuilder<T>, PropertyBuilder.TypeBasedPropertyBuilder<T>| Constructor and Description |
|---|
ArrayPropertyBuilder(@NotNull PropertyType<T> type,
@NotNull IntFunction<T[]> arrayProducer) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Property<T[]> |
build()
Creates a property with the configured details.
|
@NotNull PropertyBuilder.ArrayPropertyBuilder<T> |
defaultValue(T... defaultValue)
Sets the default of the property.
|
getDefaultValue, getPath, getType, pathpublic ArrayPropertyBuilder(@NotNull
@NotNull PropertyType<T> type,
@NotNull
@NotNull IntFunction<T[]> arrayProducer)
@NotNull public @NotNull PropertyBuilder.ArrayPropertyBuilder<T> defaultValue(@NotNull T... defaultValue)
PropertyBuilderdefaultValue in class PropertyBuilder<T,T[],PropertyBuilder.ArrayPropertyBuilder<T>>defaultValue - the default value to set@NotNull public @NotNull Property<T[]> build()
PropertyBuilderbuild in class PropertyBuilder<T,T[],PropertyBuilder.ArrayPropertyBuilder<T>>Copyright © 2016–2023 The AuthMe Team. All rights reserved.