Invert Boolean
Last modified: 21 September 2022Refactor | Invert Boolean
This refactoring is also available from UML Class diagram.
The Invert Boolean refactoring lets you change the sense of a Boolean method or variable to the opposite one.
Place the caret at the name of the method or variable that you want to refactor.
On the main or context menu, select Refactor | Invert Boolean.
In the dialog that opens, specify the name for the inverted method or variable.
Example
Before | After |
---|---|
|
|
|
|
Invert boolean dialog
This dialog appears when you use the Invert boolean refactoring.
Item | Description |
---|---|
Name of inverted method/field | Specify the name for the inverted method or field. |
Thanks for your feedback!
Was this page helpful?