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 Set<ExamStudent> getStudents()
ExamStudent
public Set<ExamInstructor> getIntructors()
ExamInstructor
public int compareTo(ExamOwner owner)
compareTo
in interface Comparable<ExamOwner>