Class MapPropertyBuilder<K,V>
- java.lang.Object
-
- io.github.mmm.property.builder.PropertyBuilder<Map<K,V>,MapProperty<K,V>,ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>,MapPropertyBuilder<K,V>>
-
- io.github.mmm.property.builder.container.MapPropertyBuilder<K,V>
-
public class MapPropertyBuilder<K,V> extends PropertyBuilder<Map<K,V>,MapProperty<K,V>,ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>,MapPropertyBuilder<K,V>>
- Since:
- 1.0.0
- See Also:
PropertyBuilder.asMap()
-
-
Field Summary
-
Fields inherited from class io.github.mmm.property.builder.PropertyBuilder
expression, value
-
-
Constructor Summary
Constructors Constructor Description MapPropertyBuilder()
The constructor.MapPropertyBuilder(SimpleProperty<K> keyProperty, Property<V> valueProperty)
The constructor.MapPropertyBuilder(Property<V> valueProperty)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MapProperty<K,V>
build(String name, PropertyMetadata<Map<K,V>> metadata)
protected ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>
createValidatorBuilder()
MapPropertyBuilder<K,V>
keyProperty(SimpleProperty<K> property)
MapPropertyBuilder<K,V>
valueProperty(Property<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
-
MapPropertyBuilder
public MapPropertyBuilder()
The constructor.
-
MapPropertyBuilder
public MapPropertyBuilder(Property<V> valueProperty)
The constructor.- Parameters:
valueProperty
- thevalue property
.
-
MapPropertyBuilder
public MapPropertyBuilder(SimpleProperty<K> keyProperty, Property<V> valueProperty)
The constructor.- Parameters:
keyProperty
- thekey property
.valueProperty
- thevalue property
.
-
-
Method Detail
-
keyProperty
public MapPropertyBuilder<K,V> keyProperty(SimpleProperty<K> property)
- Parameters:
property
- thekey property
.- Returns:
- this builder itself (
this
) for fluent API calls.
-
valueProperty
public MapPropertyBuilder<K,V> valueProperty(Property<V> property)
- Parameters:
property
- thevalue property
.- Returns:
- this builder itself (
this
) for fluent API calls.
-
createValidatorBuilder
protected ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>> createValidatorBuilder()
- Specified by:
createValidatorBuilder
in classPropertyBuilder<Map<K,V>,MapProperty<K,V>,ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>,MapPropertyBuilder<K,V>>
- Returns:
- the
ObjectValidatorBuilder
corresponding to this type of builder.
-
build
protected MapProperty<K,V> build(String name, PropertyMetadata<Map<K,V>> metadata)
- Specified by:
build
in classPropertyBuilder<Map<K,V>,MapProperty<K,V>,ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>,MapPropertyBuilder<K,V>>
- Parameters:
name
- theproperty name
of theProperty
to build.metadata
- thePropertyMetadata
.- Returns:
- the
Property
tobuild
.
-
-