example.cmp.map
Class GradeKey

java.lang.Object
  |
  +--example.cmp.map.GradeKey

public class GradeKey
extends java.lang.Object

The composite grade key. The fields names match the primary key of the Grade object.


Field Summary
 Course course
           
 Student student
           
 
Constructor Summary
GradeKey()
          Null constructor for the GradeKey.
GradeKey(Student student, Course course)
          Create a new GradeKey.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Overrides equals to return true when the key matches.
 int hashCode()
          Returns the key's hash code.
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

student

public Student student

course

public Course course
Constructor Detail

GradeKey

public GradeKey()
Null constructor for the GradeKey.

GradeKey

public GradeKey(Student student,
                Course course)
Create a new GradeKey.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides equals to return true when the key matches.
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns the key's hash code.
Overrides:
hashCode in class java.lang.Object