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
Post a Comment