-
-
Notifications
You must be signed in to change notification settings - Fork 344
Classes & Interfaces
Marvin Hofmann edited this page Aug 22, 2016
·
5 revisions
- Named in
UpperCamelCase
convention
- If 5 or more classes from 1
package
are used, convert to wildcard (package.*
) import
/**/
import my.company.package.ClassA;
import my.company.package.ClassB;
import my.company.package.ClassC;
import my.company.package.ClassD;
import my.company.package.ClassE;
/**/
to
/**/
import my.company.package.*;
/**/
- The only allowed
static
imports are those that match*Utils
andenum
-
abstract
assumes theclass
name starts withAbstract
/**/
public abstract class AbstractMyClassName
{
// abstract class content
}
/**/
-
interface
assumes theclass
name starts withI
/**/
public interface IMyInterfaceName
{
// interface content
}
/**/
- On new line
/**/
public class MyClassName
{
// class content
}
/**/
- Class
- Annotation
- Interface