public class ExamOwner extends Object implements Comparable<ExamOwner>
Exam.getOwners(), ExamStudent.getOwners(),
and ExamInstructor.getOwners(). | Constructor and Description |
|---|
ExamOwner(Exam exam,
long id,
String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ExamOwner owner)
Compare two exam owners by name
|
boolean |
equals(Object o)
Compare two exam owners for equality
|
Exam |
getExam()
An exam for this course/section
|
long |
getId()
Unique identifier
|
Set<ExamInstructor> |
getIntructors()
List of instructors that are enrolled into this section/course
|
String |
getName()
Course/section name
|
Set<ExamStudent> |
getStudents()
List of students that are enrolled into this section/course
|
int |
hashCode()
Hash code
|
String |
toString()
String representation -- course/section name
|
public long getId()
public Exam getExam()
public Set<ExamStudent> getStudents()
ExamStudentpublic Set<ExamInstructor> getIntructors()
ExamInstructorpublic int compareTo(ExamOwner owner)
compareTo in interface Comparable<ExamOwner>