[TEXT-38] Fluent API in "RandomStringBuilder" (original) (raw)
Log inSkip to main contentSkip to sidebar
XMLWordPrintableJSON
Details
- Type:
Improvement
- Status: Closed
- Priority:
Major
- Resolution: Fixed
- Affects Version/s: None
- Fix Version/s: 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
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
