Record Class DoctorRepairProposalResult
java.lang.Object
java.lang.Record
com.shaft.doctor.repair.DoctorRepairProposalResult
- Record Components:
proposal- isolated reviewed proposal, absent when provider generation failed safelyproviderPatch- optional provider patch status
public record DoctorRepairProposalResult(RepairProposal proposal, DoctorRepairPatchResult providerPatch)
extends Record
MCP-friendly result for deterministic or optional provider-assisted repair proposals.
-
Constructor Summary
ConstructorsConstructorDescriptionDoctorRepairProposalResult(RepairProposal proposal, DoctorRepairPatchResult providerPatch) Creates an instance of aDoctorRepairProposalResultrecord 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.proposal()Returns the value of theproposalrecord component.Returns the value of theproviderPatchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DoctorRepairProposalResult
Creates an instance of aDoctorRepairProposalResultrecord class.- Parameters:
proposal- the value for theproposalrecord componentproviderPatch- the value for theproviderPatchrecord 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). -
proposal
-
providerPatch
Returns the value of theproviderPatchrecord component.- Returns:
- the value of the
providerPatchrecord component
-