IntelliJ IDEA 2024.3 Help

Generate Getter dialog

Code | Generate - Getter

For more information about generating code, refer to Generate getters and setters.

Item

Description

Template

Click this list to choose the template to use. You can click the Browse button to open the Template Dialog and add a new getter template or select an existing one.

the Sort Alphabetically button

Click this button to represent the fields in ascending or descending alphabetical order.

Click this button to show classes.

Click this button to expand all class nodes.

Click this button to collapse all nodes.

Copy all annotations

If this option is selected, all applicable annotations from fields will be copied to new methods. Otherwise, only applicable nullability annotations will be copied.

Last modified: 26 September 2024