-
-
Notifications
You must be signed in to change notification settings - Fork 408
Classes & Interfaces
Marvin Hofmann edited this page Aug 22, 2016
·
5 revisions
- Named in
UpperCamelCaseconvention
- If 5 or more classes from 1
packageare 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
staticimports are those that match*Utilsandenum
-
abstractassumes theclassname starts withAbstract
/**/
public abstract class AbstractMyClassName
{
// abstract class content
}
/**/-
interfaceassumes theclassname starts withI
/**/
public interface IMyInterfaceName
{
// interface content
}
/**/- On new line
/**/
public class MyClassName
{
// class content
}
/**/- Class
- Annotation
- Interface