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) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -