Class ListPropertyBuilder<E>
- java.lang.Object
-
- io.github.mmm.property.builder.PropertyBuilder<List<E>,ListProperty<E>,ValidatorBuilderList<E,ListPropertyBuilder<E>>,ListPropertyBuilder<E>>
-
- io.github.mmm.property.builder.container.ListPropertyBuilder<E>
-
- Type Parameters:
E- the generic type of theelements containedin theList.
public class ListPropertyBuilder<E> extends PropertyBuilder<List<E>,ListProperty<E>,ValidatorBuilderList<E,ListPropertyBuilder<E>>,ListPropertyBuilder<E>>
- Since:
- 1.0.0
- See Also:
PropertyBuilder.asList()
-
-
Field Summary
-
Fields inherited from class io.github.mmm.property.builder.PropertyBuilder
expression, value
-
-
Constructor Summary
Constructors Constructor Description ListPropertyBuilder()The constructor.ListPropertyBuilder(Property<E> valueProperty)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ListProperty<E>build(String name, PropertyMetadata<List<E>> metadata)protected ValidatorBuilderList<E,ListPropertyBuilder<E>>createValidatorBuilder()ListPropertyBuilder<E>valueProperty(Property<E> property)-
Methods inherited from class io.github.mmm.property.builder.PropertyBuilder
asList, asMap, asMap, asSet, build, build, builder, factory, metadata, metadataFactory, registry, self, value, valueExpression, withValidator
-
-
-
-
Constructor Detail
-
ListPropertyBuilder
public ListPropertyBuilder()
The constructor.
-
ListPropertyBuilder
public ListPropertyBuilder(Property<E> valueProperty)
The constructor.- Parameters:
valueProperty- thevalue property.
-
-
Method Detail
-
valueProperty
public ListPropertyBuilder<E> valueProperty(Property<E> property)
- Parameters:
property- thevalue property.- Returns:
- this builder itself (
this) for fluent API calls.
-
createValidatorBuilder
protected ValidatorBuilderList<E,ListPropertyBuilder<E>> createValidatorBuilder()
- Specified by:
createValidatorBuilderin classPropertyBuilder<List<E>,ListProperty<E>,ValidatorBuilderList<E,ListPropertyBuilder<E>>,ListPropertyBuilder<E>>- Returns:
- the
ObjectValidatorBuildercorresponding to this type of builder.
-
build
protected ListProperty<E> build(String name, PropertyMetadata<List<E>> metadata)
- Specified by:
buildin classPropertyBuilder<List<E>,ListProperty<E>,ValidatorBuilderList<E,ListPropertyBuilder<E>>,ListPropertyBuilder<E>>- Parameters:
name- theproperty nameof thePropertyto build.metadata- thePropertyMetadata.- Returns:
- the
Propertytobuild.
-
-