18 lines
336 B
Java
18 lines
336 B
Java
|
|
package grading;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* An interface for implementing a grade with a key and a value to store the score.
|
||
|
|
*/
|
||
|
|
public interface Grade extends Comparable<Grade>
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @return The key of for this Grade
|
||
|
|
*/
|
||
|
|
public String getKey();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @return The value for this Grade
|
||
|
|
*/
|
||
|
|
public Double getValue();
|
||
|
|
}
|