java - What to do when I have to use 'isSomething' as name of a Boolean variable? -


the question have use 'is' name of boolean variable reasons, , don't know if it's better find way change it's name, or that's not big problem use 'issomething' variable , 'issomething()' getter?

there no problem in having field private boolean issomething; , getter

public boolean issomething() {     return issomething; } 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -