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

Fluent API in "RandomStringBuilder"

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: