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:
-
Field Summary
Fields inherited from class io.github.mmm.property.builder.PropertyBuilder
expression, lock, value
-
Constructor Summary
ConstructorsConstructorDescriptionThe constructor.MapPropertyBuilder
(AttributeReadOnly lock, SimpleProperty<K> keyProperty, Property<V> valueProperty) The constructor.MapPropertyBuilder
(AttributeReadOnly lock, Property<V> valueProperty) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected MapProperty
<K, V> protected ValidatorBuilderMap
<K, V, MapPropertyBuilder<K, V>> keyProperty
(SimpleProperty<K> property) valueProperty
(Property<V> property)
-
Constructor Details
-
MapPropertyBuilder
The constructor.- Parameters:
lock
- thelock
.
-
MapPropertyBuilder
The constructor.- Parameters:
lock
- thelock
.valueProperty
- thevalue property
.
-
MapPropertyBuilder
public MapPropertyBuilder(AttributeReadOnly lock, SimpleProperty<K> keyProperty, Property<V> valueProperty) The constructor.- Parameters:
lock
- thelock
.keyProperty
- thekey property
.valueProperty
- thevalue property
.
-
-
Method Details
-
keyProperty
- Parameters:
property
- thekey property
.- Returns:
- this builder itself (
this
) for fluent API calls.
-
valueProperty
- Parameters:
property
- thevalue property
.- Returns:
- this builder itself (
this
) for fluent API calls.
-
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
- 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
.
-