KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I know that the convention in Java for boolean getters is include the prefix "is". isEnabled isStoreOpen But what if the subject is plural? That is, what if instead of wanting to know if a store is open, I wanted to know if all the stores are open? isStoresOpen() doesn't make sense in English. I'm tempted to write getters like: areStoresOpen areDogsCute areCatsFuzzy And I think that would make sense, but I've been told by others that I should just suck it up and abandon subject verb agreement and use isStoresOpen , isDogsCute , isCatsFuzzy . Anyway, what should I do for boolean getters which operate on a plural subject?
Tags (comma-separated)
Save Edits
Cancel