Skip to content

Revise PropertyBuilder methods for default values #128

@ljacqu

Description

@ljacqu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions