Record Class CaptureGenerationReport.Validation
java.lang.Object
java.lang.Record
com.shaft.capture.generate.CaptureGenerationReport.Validation
- Record Components:
status- validation statusdiagnostics- safe diagnosticsallureResultCount- populated Allure result count
- Enclosing class:
CaptureGenerationReport
public static record CaptureGenerationReport.Validation(CaptureGenerationReport.Validation.ValidationStatus status, List<String> diagnostics, int allureResultCount)
extends Record
Compile or replay result.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumValidation status. -
Constructor Summary
ConstructorsConstructorDescriptionValidation(CaptureGenerationReport.Validation.ValidationStatus status, List<String> diagnostics, int allureResultCount) Creates an instance of aValidationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theallureResultCountrecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns a skipped validation.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Validation
public Validation(CaptureGenerationReport.Validation.ValidationStatus status, List<String> diagnostics, int allureResultCount) Creates an instance of aValidationrecord class.- Parameters:
status- the value for thestatusrecord componentdiagnostics- the value for thediagnosticsrecord componentallureResultCount- the value for theallureResultCountrecord component
-
-
Method Details
-
skipped
Returns a skipped validation.- Parameters:
reason- skip reason- Returns:
- skipped validation
-
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. -
status
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-
allureResultCount
public int allureResultCount()Returns the value of theallureResultCountrecord component.- Returns:
- the value of the
allureResultCountrecord component
-