Class DetailedCourse

    • Method Detail

      • createWithData

        public static DetailedCourse createWithData​(Course from,
                                                    double creditHours,
                                                    double gradeValue)
        Creates a DetailedCourse from a regular Course, the number of credit hours, and the grade value.
        Parameters:
        from - Course to detail
        creditHours - Number of credit hours
        gradeValue - Grade value
        Returns:
        New DetailedCourse with the desired information
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Course
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Course
      • getCreditHours

        public double getCreditHours()
        Returns the number of credit hours for this DetailedCourse.
        Returns:
        the number of credit hours for this DetailedCourse
      • getGradeValue

        public double getGradeValue()
        Returns the grade value of this DetailedCourse.
        Returns:
        the grade value of this DetailedCourse