You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The defaultEntry method on MapPropertyBuilder should be renamed to make a clearer distinction between it and PropertyBuilder#defaultValue. The former amends values to a default while the former overwrites any previous values.
PropertyBuilder#defaultValue sets the default value (overwrites)
MapPropertyBuilder#defaultEntry puts to the existing map it keeps
Additionally, it would be nice to have a method like addToDefaultValue for builders that create a property of Collection type (SetPropertyBuilder, ListPropertyBuilder)
The text was updated successfully, but these errors were encountered:
…perty builders
- Arrays, inline arrays and collections are now based on property types which can be constructed from other property paths
- Introduce an enum set type
- Refactor the property builders (remove inheritance among builders, rename methods for default values to be more clear)
- Lift requirement that the collections in properties are always unmodifiable; to be seen in more depth with #379
The method defaultValue sets the entire default value for a property; it may only be called once, and not in combination with other methods that modify the default value.
Property builders for collections, maps and arrays have another method addToDefaultValue that allows to define one entry of the default value. This method can be called repeatedly.
The
defaultEntry
method on MapPropertyBuilder should be renamed to make a clearer distinction between it and PropertyBuilder#defaultValue. The former amends values to a default while the former overwrites any previous values.Additionally, it would be nice to have a method like
addToDefaultValue
for builders that create a property of Collection type (SetPropertyBuilder, ListPropertyBuilder)The text was updated successfully, but these errors were encountered: