java.lang.Object
page.codeberg.friedolyn.grades.Grade
- All Implemented Interfaces:
Redactable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
GRADE
-
-
Constructor Details
-
Grade
Constructs a new Grade object with the given grade.- Parameters:
grade
- The grade in an exam, aModule
or an entire degree. Must be between 0.7 and 5.0 (inclusive) and have at most 2 decimal places.- Throws:
IllegalArgumentException
- If the grade is less than 0.7 or greater than 5.0 or has more than 2 decimal places.
-
-
Method Details
-
get
-
equals
-
toString
- Specified by:
toString
in interfaceRedactable
- Overrides:
toString
in classObject
- Returns:
- A string representation of this Grade object.
-
toStringRedacted
- Specified by:
toStringRedacted
in interfaceRedactable
- Returns:
- A redacted string representation of this Grade object.
-