Package edu.pdx.cs.joy.grader.canvas
Record Class CompareCanvasAndWebsiteSchedules.ComparisonRow
java.lang.Object
java.lang.Record
edu.pdx.cs.joy.grader.canvas.CompareCanvasAndWebsiteSchedules.ComparisonRow
- Enclosing class:
CompareCanvasAndWebsiteSchedules
static record CompareCanvasAndWebsiteSchedules.ComparisonRow(String assignmentName, String canvasDueDate, String websiteDueDate)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonRow(String assignmentName, String canvasDueDate, String websiteDueDate) Creates an instance of aComparisonRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignmentNamerecord component.Returns the value of thecanvasDueDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thewebsiteDueDaterecord component.
-
Constructor Details
-
ComparisonRow
ComparisonRow(String assignmentName, String canvasDueDate, String websiteDueDate) Creates an instance of aComparisonRowrecord class.- Parameters:
assignmentName- the value for theassignmentNamerecord componentcanvasDueDate- the value for thecanvasDueDaterecord componentwebsiteDueDate- the value for thewebsiteDueDaterecord 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
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). -
assignmentName
Returns the value of theassignmentNamerecord component.- Returns:
- the value of the
assignmentNamerecord component
-
canvasDueDate
Returns the value of thecanvasDueDaterecord component.- Returns:
- the value of the
canvasDueDaterecord component
-
websiteDueDate
Returns the value of thewebsiteDueDaterecord component.- Returns:
- the value of the
websiteDueDaterecord component
-