Record Class AssignmentWithJob
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.models.AssignmentWithJob
- Record Components:
assignment- the saved assignmentjob- the job started to create the repositories
public record AssignmentWithJob(Assignment assignment, edu.ucsb.cs156.jobs.entities.Job job)
extends Record
The result of creating or editing an assignment: the saved assignment, and the job that was
started to create its repositories.
-
Constructor Summary
ConstructorsConstructorDescriptionAssignmentWithJob(Assignment assignment, edu.ucsb.cs156.jobs.entities.Job job) Creates an instance of aAssignmentWithJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.edu.ucsb.cs156.jobs.entities.Jobjob()Returns the value of thejobrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssignmentWithJob
Creates an instance of aAssignmentWithJobrecord class.- Parameters:
assignment- the value for theassignmentrecord componentjob- the value for thejobrecord component
-
-
Method Details
-
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). -
assignment
Returns the value of theassignmentrecord component.- Returns:
- the value of the
assignmentrecord component
-
job
-