Record Class RepairProposal.PatchManifestEntry
java.lang.Object
java.lang.Record
com.shaft.doctor.repair.RepairProposal.PatchManifestEntry
- Record Components:
path- repository-relative pathoperation- applied operationcontentSha256- resulting content checksumsizeBytes- resulting content sizerationale- change rationaleevidenceIds- supporting evidence references
- Enclosing class:
RepairProposal
-
Constructor Summary
ConstructorsConstructorDescriptionPatchManifestEntry(String path, DoctorRepairRequest.FilePatch.Operation operation, String contentSha256, long sizeBytes, String rationale, List<String> evidenceIds) Creates an instance of aPatchManifestEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentSha256record component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevidenceIdsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.path()Returns the value of thepathrecord component.Returns the value of therationalerecord component.longReturns the value of thesizeBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatchManifestEntry
public PatchManifestEntry(String path, DoctorRepairRequest.FilePatch.Operation operation, String contentSha256, long sizeBytes, String rationale, List<String> evidenceIds) Creates an instance of aPatchManifestEntryrecord class.- Parameters:
path- the value for thepathrecord componentoperation- the value for theoperationrecord componentcontentSha256- the value for thecontentSha256record componentsizeBytes- the value for thesizeBytesrecord componentrationale- the value for therationalerecord componentevidenceIds- the value for theevidenceIdsrecord 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. -
path
-
operation
-
contentSha256
Returns the value of thecontentSha256record component.- Returns:
- the value of the
contentSha256record component
-
sizeBytes
-
rationale
-
evidenceIds
Returns the value of theevidenceIdsrecord component.- Returns:
- the value of the
evidenceIdsrecord component
-