Record Class RepairProposal.ValidationResult
java.lang.Object
java.lang.Record
com.shaft.doctor.repair.RepairProposal.ValidationResult
- Record Components:
command- exact argument vectorexitCode- process exit codetimedOut- whether the command exceeded its deadlinepassed- trusted validation verdictallureResultCount- populated Allure result countdiagnostics- bounded redacted process diagnostics
- Enclosing class:
RepairProposal
-
Constructor Summary
ConstructorsConstructorDescriptionValidationResult(List<String> command, int exitCode, boolean timedOut, boolean passed, int allureResultCount, List<String> diagnostics) Creates an instance of aValidationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theallureResultCountrecord component.command()Returns the value of thecommandrecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.intexitCode()Returns the value of theexitCoderecord component.final inthashCode()Returns a hash code value for this object.booleanpassed()Returns the value of thepassedrecord component.booleantimedOut()Returns the value of thetimedOutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationResult
public ValidationResult(List<String> command, int exitCode, boolean timedOut, boolean passed, int allureResultCount, List<String> diagnostics) Creates an instance of aValidationResultrecord class.- Parameters:
command- the value for thecommandrecord componentexitCode- the value for theexitCoderecord componenttimedOut- the value for thetimedOutrecord componentpassed- the value for thepassedrecord componentallureResultCount- the value for theallureResultCountrecord componentdiagnostics- the value for thediagnosticsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
command
-
exitCode
-
timedOut
-
passed
-
allureResultCount
public int allureResultCount()Returns the value of theallureResultCountrecord component.- Returns:
- the value of the
allureResultCountrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-