Invert Boolean
Last modified: 10 August 2022The Invert Boolean refactoring lets you change the sense of a Boolean method or variable to the opposite one.
tip
This refactoring is also available from UML Class diagram.
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 |
---|---|
|
|
|
|
Thanks for your feedback!
Was this page helpful?