Record Class ApiCaptureGenerationResult
java.lang.Object
java.lang.Record
com.shaft.capture.generate.api.ApiCaptureGenerationResult
- Record Components:
sourcePath- generated source path, ornullif generation failed before a path could be determinedtestDataDirectory- directory holding generated schema/golden-file artifacts, ornullif generation failed before one could be determinedreportPath- generation report pathreport- deterministic generation report
public record ApiCaptureGenerationResult(Path sourcePath, Path testDataDirectory, Path reportPath, CaptureGenerationReport report)
extends Record
Artifacts and report produced by
ApiCaptureGenerator.-
Constructor Summary
ConstructorsConstructorDescriptionApiCaptureGenerationResult(Path sourcePath, Path testDataDirectory, Path reportPath, CaptureGenerationReport report) Creates an instance of aApiCaptureGenerationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.report()Returns the value of thereportrecord component.Returns the value of thereportPathrecord component.Returns the value of thesourcePathrecord component.Returns the value of thetestDataDirectoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApiCaptureGenerationResult
public ApiCaptureGenerationResult(Path sourcePath, Path testDataDirectory, Path reportPath, CaptureGenerationReport report) Creates an instance of aApiCaptureGenerationResultrecord class.- Parameters:
sourcePath- the value for thesourcePathrecord componenttestDataDirectory- the value for thetestDataDirectoryrecord componentreportPath- the value for thereportPathrecord componentreport- the value for thereportrecord 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). -
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
testDataDirectory
Returns the value of thetestDataDirectoryrecord component.- Returns:
- the value of the
testDataDirectoryrecord component
-
reportPath
Returns the value of thereportPathrecord component.- Returns:
- the value of the
reportPathrecord component
-
report
-