Record Class HealingDecision
java.lang.Object
java.lang.Record
com.shaft.heal.model.HealingDecision
- Record Components:
status- normalized decision statusselectedCandidateId- selected candidate, or emptyconfidence- final confidencereason- safe explanationactionOnly- whether recovery applies to the current action onlysourcePatchProposed- whether a reviewed Doctor proposal was emitted
public record HealingDecision(HealingDecision.Status status, String selectedCandidateId, double confidence, String reason, boolean actionOnly, boolean sourcePatchProposed)
extends Record
Final safe recovery decision.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHealingDecision(HealingDecision.Status status, String selectedCandidateId, double confidence, String reason, boolean actionOnly, boolean sourcePatchProposed) Creates an immutable decision. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theactionOnlyrecord component.doubleReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of theselectedCandidateIdrecord component.booleanReturns the value of thesourcePatchProposedrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HealingDecision
public HealingDecision(HealingDecision.Status status, String selectedCandidateId, double confidence, String reason, boolean actionOnly, boolean sourcePatchProposed) Creates an immutable decision.
-
-
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. -
status
-
selectedCandidateId
Returns the value of theselectedCandidateIdrecord component.- Returns:
- the value of the
selectedCandidateIdrecord component
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
reason
-
actionOnly
public boolean actionOnly()Returns the value of theactionOnlyrecord component.- Returns:
- the value of the
actionOnlyrecord component
-
sourcePatchProposed
public boolean sourcePatchProposed()Returns the value of thesourcePatchProposedrecord component.- Returns:
- the value of the
sourcePatchProposedrecord component
-