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
defaultEntrymethod 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
addToDefaultValuefor builders that create a property of Collection type (SetPropertyBuilder, ListPropertyBuilder)