Package edu.pdx.cs.joy.grader
Record Class FindUngradedSubmissions.SubmissionAnalysis
java.lang.Object
java.lang.Record
edu.pdx.cs.joy.grader.FindUngradedSubmissions.SubmissionAnalysis
- Enclosing class:
FindUngradedSubmissions
static record FindUngradedSubmissions.SubmissionAnalysis(Path submission, boolean needsToBeTested, boolean needsToBeGraded, String reason, Path testOutput, boolean gradeNeedsToBeRecorded)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSubmissionAnalysis(Path submission, boolean needsToBeTested, boolean needsToBeGraded, String reason, Path testOutput, boolean gradeNeedsToBeRecorded) Creates an instance of aSubmissionAnalysisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegradeNeedsToBeRecordedrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theneedsToBeGradedrecord component.booleanReturns the value of theneedsToBeTestedrecord component.reason()Returns the value of thereasonrecord component.Returns the value of thesubmissionrecord component.Returns the value of thetestOutputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubmissionAnalysis
SubmissionAnalysis(Path submission, boolean needsToBeTested, boolean needsToBeGraded, String reason, Path testOutput, boolean gradeNeedsToBeRecorded) Creates an instance of aSubmissionAnalysisrecord class.- Parameters:
submission- the value for thesubmissionrecord componentneedsToBeTested- the value for theneedsToBeTestedrecord componentneedsToBeGraded- the value for theneedsToBeGradedrecord componentreason- the value for thereasonrecord componenttestOutput- the value for thetestOutputrecord componentgradeNeedsToBeRecorded- the value for thegradeNeedsToBeRecordedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
submission
Returns the value of thesubmissionrecord component.- Returns:
- the value of the
submissionrecord component
-
needsToBeTested
Returns the value of theneedsToBeTestedrecord component.- Returns:
- the value of the
needsToBeTestedrecord component
-
needsToBeGraded
Returns the value of theneedsToBeGradedrecord component.- Returns:
- the value of the
needsToBeGradedrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
testOutput
Returns the value of thetestOutputrecord component.- Returns:
- the value of the
testOutputrecord component
-
gradeNeedsToBeRecorded
Returns the value of thegradeNeedsToBeRecordedrecord component.- Returns:
- the value of the
gradeNeedsToBeRecordedrecord component
-