Naming of enums in Java: Singular or Plural?

Is there an “official” recommendation of how to name Java enums?

enum Protocol { HTTP, HTTPS, FTP }

or

enum Protocols { HTTP, HTTPS, FTP }

I know in the .Net world the recommendation is to use singular except for enums that represent bit flags. Just curious if there is something similar in Java.

A related question that seems to be .Net specific: Singular or plural for enumerations?

2 Answers
2

Leave a Comment