1

I have the following member in a class:

private boolean requireColons;

I am aware that the convention is to prefix all boolean getters with is but isRequireColons() doesn't make sense. How should I name this?

Michael Smith
  • 1,271
  • 1
  • 8
  • 31

1 Answers1

0

I would do

isColonsRequired

but if you're looking for the more grammatically correct (but less programmatically) alternative

areColonsRequired
axsuul
  • 7,370
  • 9
  • 54
  • 71