Record Class CoursesController.StaffCoursesDTO
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.controllers.CoursesController.StaffCoursesDTO
- Enclosing class:
CoursesController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecourseNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstallationIdrecord component.orgName()Returns the value of theorgNamerecord component.school()Returns the value of theschoolrecord component.staffId()Returns the value of thestaffIdrecord component.Returns the value of thestudentStatusrecord component.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StaffCoursesDTO
public StaffCoursesDTO(Long id, String installationId, String orgName, String courseName, String term, String school, OrgStatus studentStatus, Long staffId) Creates an instance of aStaffCoursesDTOrecord class.- Parameters:
id- the value for theidrecord componentinstallationId- the value for theinstallationIdrecord componentorgName- the value for theorgNamerecord componentcourseName- the value for thecourseNamerecord componentterm- the value for thetermrecord componentschool- the value for theschoolrecord componentstudentStatus- the value for thestudentStatusrecord componentstaffId- the value for thestaffIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
installationId
Returns the value of theinstallationIdrecord component.- Returns:
- the value of the
installationIdrecord component
-
orgName
Returns the value of theorgNamerecord component.- Returns:
- the value of the
orgNamerecord component
-
courseName
Returns the value of thecourseNamerecord component.- Returns:
- the value of the
courseNamerecord component
-
term
Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
school
Returns the value of theschoolrecord component.- Returns:
- the value of the
schoolrecord component
-
studentStatus
Returns the value of thestudentStatusrecord component.- Returns:
- the value of the
studentStatusrecord component
-
staffId
Returns the value of thestaffIdrecord component.- Returns:
- the value of the
staffIdrecord component
-