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 thecourseName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of theinstallationId
record component.orgName()
Returns the value of theorgName
record component.school()
Returns the value of theschool
record component.staffId()
Returns the value of thestaffId
record component.Returns the value of thestudentStatus
record component.term()
Returns the value of theterm
record component.final String
toString()
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 aStaffCoursesDTO
record class.- Parameters:
id
- the value for theid
record componentinstallationId
- the value for theinstallationId
record componentorgName
- the value for theorgName
record componentcourseName
- the value for thecourseName
record componentterm
- the value for theterm
record componentschool
- the value for theschool
record componentstudentStatus
- the value for thestudentStatus
record componentstaffId
- the value for thestaffId
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
installationId
Returns the value of theinstallationId
record component.- Returns:
- the value of the
installationId
record component
-
orgName
Returns the value of theorgName
record component.- Returns:
- the value of the
orgName
record component
-
courseName
Returns the value of thecourseName
record component.- Returns:
- the value of the
courseName
record component
-
term
Returns the value of theterm
record component.- Returns:
- the value of the
term
record component
-
school
Returns the value of theschool
record component.- Returns:
- the value of the
school
record component
-
studentStatus
Returns the value of thestudentStatus
record component.- Returns:
- the value of the
studentStatus
record component
-
staffId
Returns the value of thestaffId
record component.- Returns:
- the value of the
staffId
record component
-