org.cpsolver.instructor.model

## Class Course

- java.lang.Object
- - org.cpsolver.instructor.model.Course

-     public class Course
      extends Object

  Course of a teaching request. If a course is marked as exclusive, all assignments of an instructor must have the same course. It is also possible to mark the course as same common, which require all assignments that are given to a single instructor to share the same common part of the course (e.g., the lecture).
  Version:
    IFS 1.3 (Instructor Sectioning)
    Copyright (C) 2016 Tomáš Müller
    muller@unitime.org
    http://muller.unitime.org
    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
    You should have received a copy of the GNU Lesser General Public License along with this library; if not see http://www.gnu.org/licenses/.
  Author:
    Tomáš Müller

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Course(long courseId, String courseName)` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `Long` | `getCourseId()` Course id that was provided in the constructor
    `String` | `getCourseName()` Course name that was provided in the constructor
    `int` | `hashCode()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Course

          public Course(long courseId,
                        String courseName)

      Constructor
      Parameters:
        `courseId` - course id
        `courseName` - course name

  - ### Method Detail

    - #### getCourseId

          public Long getCourseId()

      Course id that was provided in the constructor
      Returns:
        course id

    - #### getCourseName

          public String getCourseName()

      Course name that was provided in the constructor
      Returns:
        course name

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`