You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Łukasz Dumiszewski edited this page Feb 3, 2015
·
1 revision
To improve the readability of classes we have decided to divide their code into logical sections. Each section has a relevant comment block on top of it.
The used comment pattern for each section is as follows:
Names of all distinguished code sections in SAOS along with their descriptions:
CONSTRUCTORS - class constructors
GETTERS - Java Beans getters
TESTS - test methods in test classes
LOGIC - public methods of a class that implement its intended functionalities, e.g. Parser.parse(String) or Math.divide(), Court.addDivision(Division).
PRIVATE - class and package private methods
SETTERS - Java Beans setters
HashCode & Equals - hashCode and equals methods
toString - toString method
INNER CLASSES - inner classes
The order of the sections in a class should be the same as on the list above.