[TEXT-38] Fluent API in "RandomStringBuilder" (original) (raw)

Log inSkip to main contentSkip to sidebar

ASF Jira

Uploaded image for project: 'Commons Text'

  1. Commons Text
  2. TEXT-38

XMLWordPrintableJSON

Details

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

Votes:

0 Vote for this issue

Watchers:

1 Start watching this issue

Dates

Created:

21/Dec/16 14:09

Updated:

27/Dec/16 08:48

Resolved:

27/Dec/16 08:48