Use to replace a public constructor with references to a newly created builder class.
| Element | Description |
|---|---|
|
Parameter |
Displays the list of parameters detected in the constructor that are to be replaced with the builder fields. |
|
Setter Name |
Displays the list of suggested setter names to be created in the builder class.
Double-click the appropriate column line to edit a name. |
|
Default Value |
Displays the list of default values for initializing the builder fields.
Double-click the appropriate column line to specify a value. |
|
Optional Setter |
Omits a setter method for this field in the builder invocation when the specified default value of a field matches the parameter value in the constructor invocation.
If this option is not selected, the corresponding setter method is displayed. |
|
Builder Class Name |
Displays the name of the builder class to be applied.
Specify another builder class by modifying this field. |
Related Topics
Developing Applications with NetBeans IDE,
| Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |