We are having this discussion in our team about code conventions for Java for:
-
interface:FooorIFooorFooInterface? -
abstract:FooorAbstractFoo? -
Enums:FooorFooEnum?
I’m basically trying to put my personal preferences aside 🙂 so reasons to back up one or other convention are very welcome.
In Java:
Foo,AbstractFooandFoo– althoughAbstractFoocould just beFoo.Evidence:
java.util.List(interface)java.util.AbstractList(abstract class)java.util.Formatter.BigDecimalLayoutForm(enum)For the interface part, see the Naming Conventions section of the Java Coding Conventions document. It doesn’t talk about enums and abstract classes though.