Class TeachingUnitResult


  • public class TeachingUnitResult
    extends java.lang.Object
    A result corresponding to a grade associated with a teaching unit.
    • Constructor Summary

      Constructors 
      Constructor Description
      TeachingUnitResult​(java.lang.String teachingUnitName, Grade grade)
      Constructs an instance of TeachingUnitResult with a grade equals to the specified grade and a teaching unit name equals to the specified teachingUnitName.
    • Method Summary

      Modifier and Type Method Description
      Grade getGrade()
      Returns the grade associated to the result.
      java.lang.String toString()
      Returns a string representation of the result in the format Name of the teaching unit : X.X.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TeachingUnitResult

        public TeachingUnitResult​(java.lang.String teachingUnitName,
                                  Grade grade)
        Constructs an instance of TeachingUnitResult with a grade equals to the specified grade and a teaching unit name equals to the specified teachingUnitName.
        Parameters:
        teachingUnitName - the name of the teaching unit of the constructed TeachingUnitResult
        grade - the grade of the constructed TeachingUnitResult
    • Method Detail

      • getGrade

        public Grade getGrade()
        Returns the grade associated to the result.
        Returns:
        the grade associated to the result
      • toString

        public java.lang.String toString()
        Returns a string representation of the result in the format Name of the teaching unit : X.X.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of the result