Class Course
java.lang.Object
example.app.entities.compartments.Course
- All Implemented Interfaces:
FileDatabaseCompatible,Serializable
Class Course
This class represents a course. After the instantiation, the fields cannot be changed. For two courses to be equal, they must have the same name, description and code- See Also:
-
Constructor Details
-
Course
public Course(String name, String description, String code) throws NullArgumentException, EmptyArgumentException
-
-
Method Details
-
getId
Getter for the id- Specified by:
getIdin interfaceFileDatabaseCompatible- Returns:
-
getName
Getter for the name- Returns:
- the name
-
getDescription
Getter for the description- Returns:
- the description
-
getCode
Getter for the Course code- Returns:
- the code of the Course code
-
getCreationDate
Getter for the creation date- Specified by:
getCreationDatein interfaceFileDatabaseCompatible- Returns:
- the creation date
-
equals
-
hashCode
public int hashCode() -
toString
-