org.cpsolver.studentsct.model

## Class Instructor

- java.lang.Object
- - org.cpsolver.studentsct.model.Instructor

-     public class Instructor
      extends Object

  Representation of an instructor. Each instructor contains id, and a name.
  Version:
    StudentSct 1.3 (Student Sectioning)
    Copyright (C) 2007 - 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/.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Instructor(long id)` Constructor
    `Instructor(long id, String externalId, String name, String email)` Constructor

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object object)` Compare two instructors for equality.
    `String` | `getEmail()` Get instructor email
    `String` | `getExternalId()` Get instructor external id
    `long` | `getId()` Instructor unique id
    `String` | `getName()` Get instructor name
    `int` | `hashCode()` Hash code (based only on instructor id)
    `void` | `setEmail(String email)` Set instructor email
    `void` | `setExternalId(String externalId)` Set instructor external id
    `void` | `setId(long id)` Set instructor unique id
    `void` | `setName(String name)` Set instructor name
    `static List<Instructor>` | `toInstructors(String instructorIds, String instructorNames)` Deprecated.
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### Instructor

          public Instructor(long id)

      Constructor
      Parameters:
        `id` - instructor unique id

    - #### Instructor

          public Instructor(long id,
                            String externalId,
                            String name,
                            String email)

      Constructor
      Parameters:
        `id` - instructor unique id
        `externalId` - instructor external id
        `name` - instructor name
        `email` - instructor email

  - ### Method Detail

    - #### getId

          public long getId()

      Instructor unique id
      Returns:
        instructor unique id

    - #### setId

          public void setId(long id)

      Set instructor unique id
      Parameters:
        `id` - instructor unique id

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object object)

      Compare two instructors for equality. Two instructors are considered equal if they have the same id.
      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Hash code (based only on instructor id)
      Overrides:
        `hashCode` in class `Object`

    - #### getExternalId

          public String getExternalId()

      Get instructor external id
      Returns:
        instructor external unique id

    - #### setExternalId

          public void setExternalId(String externalId)

      Set instructor external id
      Parameters:
        `externalId` - instructor external id

    - #### getName

          public String getName()

      Get instructor name
      Returns:
        instructor name

    - #### setName

          public void setName(String name)

      Set instructor name
      Parameters:
        `name` - instructor name

    - #### getEmail

          public String getEmail()

      Get instructor email
      Returns:
        instructor email

    - #### setEmail

          public void setEmail(String email)

      Set instructor email
      Parameters:
        `email` - instructor email

    - #### toInstructors

          @Deprecated
          public static List<Instructor> toInstructors(String instructorIds,
                                                                   String instructorNames)

      Deprecated.