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 theRange
bounds.
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:
createValidatorBuilder
in classPropertyBuilder<Range<V>,RangeProperty<V>,ValidatorBuilderRange<V,RangePropertyBuilder<V>>,RangePropertyBuilder<V>>
- Returns:
- the
ObjectValidatorBuilder
corresponding to this type of builder.
-
build
protected RangeProperty<V> build(String name, PropertyMetadata<Range<V>> metadata)
- Specified by:
build
in classPropertyBuilder<Range<V>,RangeProperty<V>,ValidatorBuilderRange<V,RangePropertyBuilder<V>>,RangePropertyBuilder<V>>
- Parameters:
name
- theproperty name
of theProperty
to build.metadata
- thePropertyMetadata
.- Returns:
- the
Property
tobuild
.
-
-