Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-38

Fluent API in "RandomStringBuilder"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0

    Description

      It can be construed as potentially dangerous to let user code change any of the settings of the builder, as other parts of the code could be using a reference to the same instance.

      In Commons Math, where the fluent API pattern was applied, a new builder (immutable) instance would be created. For example, see this class.

      Attachments

        Activity

          People

            dmjones500 Duncan Jones
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: