Record Class StaffUpsertResponse
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.models.StaffUpsertResponse
public record StaffUpsertResponse(InsertStatus insertStatus, CourseStaff courseStaff)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStaffUpsertResponse(InsertStatus insertStatus, CourseStaff courseStaff) Creates an instance of aStaffUpsertResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecourseStaffrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinsertStatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StaffUpsertResponse
Creates an instance of aStaffUpsertResponserecord class.- Parameters:
insertStatus- the value for theinsertStatusrecord componentcourseStaff- the value for thecourseStaffrecord component
-
-
Method Details
-
getInsertStatus
-
toString
-
hashCode
-
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). -
insertStatus
Returns the value of theinsertStatusrecord component.- Returns:
- the value of the
insertStatusrecord component
-
courseStaff
Returns the value of thecourseStaffrecord component.- Returns:
- the value of the
courseStaffrecord component
-