Class RangePropertyBuilder<V>
- java.lang.Object
-
- io.github.mmm.property.builder.PropertyBuilder<Range<V>,RangeProperty<V>,ValidatorBuilderRange<V,RangePropertyBuilder<V>>,RangePropertyBuilder<V>>
-
- io.github.mmm.property.builder.lang.RangePropertyBuilder<V>
-
- Type Parameters:
V- type of theRangebounds.
public final class RangePropertyBuilder<V> extends PropertyBuilder<Range<V>,RangeProperty<V>,ValidatorBuilderRange<V,RangePropertyBuilder<V>>,RangePropertyBuilder<V>>
- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.property.builder.PropertyBuilder
expression, value
-
-
Constructor Summary
Constructors Constructor Description RangePropertyBuilder()The constructor.RangePropertyBuilder(SimpleProperty<V> valueProperty)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RangeProperty<V>build(String name, PropertyMetadata<Range<V>> metadata)protected ValidatorBuilderRange<V,RangePropertyBuilder<V>>createValidatorBuilder()RangePropertyBuilder<V>valueProperty(SimpleProperty<V> 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
-
RangePropertyBuilder
public RangePropertyBuilder()
The constructor.
-
RangePropertyBuilder
public RangePropertyBuilder(SimpleProperty<V> valueProperty)
The constructor.- Parameters:
valueProperty- thevalue property.
-
-
Method Detail
-
valueProperty
public RangePropertyBuilder<V> valueProperty(SimpleProperty<V> property)
- Parameters:
property- thevalue property.- Returns:
- this builder itself (
this) for fluent API calls.
-
createValidatorBuilder
protected ValidatorBuilderRange<V,RangePropertyBuilder<V>> createValidatorBuilder()
- Specified by:
createValidatorBuilderin classPropertyBuilder<Range<V>,RangeProperty<V>,ValidatorBuilderRange<V,RangePropertyBuilder<V>>,RangePropertyBuilder<V>>- Returns:
- the
ObjectValidatorBuildercorresponding to this type of builder.
-
build
protected RangeProperty<V> build(String name, PropertyMetadata<Range<V>> metadata)
- Specified by:
buildin classPropertyBuilder<Range<V>,RangeProperty<V>,ValidatorBuilderRange<V,RangePropertyBuilder<V>>,RangePropertyBuilder<V>>- Parameters:
name- theproperty nameof thePropertyto build.metadata- thePropertyMetadata.- Returns:
- the
Propertytobuild.
-
-