Record Class DoctorAdvisory.Hypothesis
java.lang.Object
java.lang.Record
com.shaft.doctor.model.DoctorAdvisory.Hypothesis
- Record Components:
causeCategory- proposed cause categorystatement- safe hypothesis textconfidence- provider confidenceevidenceIds- submitted evidence referencescited- whether at least one submitted evidence item supports the claimcontradictsDeterministic- whether the category conflicts with the deterministic diagnosis
- Enclosing class:
DoctorAdvisory
public static record DoctorAdvisory.Hypothesis(CauseCategory causeCategory, String statement, Confidence confidence, List<String> evidenceIds, boolean cited, boolean contradictsDeterministic)
extends Record
One provider hypothesis.
-
Constructor Summary
ConstructorsConstructorDescriptionHypothesis(CauseCategory causeCategory, String statement, Confidence confidence, List<String> evidenceIds, boolean cited, boolean contradictsDeterministic) Creates an immutable hypothesis. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecauseCategoryrecord component.booleancited()Returns the value of thecitedrecord component.Returns the value of theconfidencerecord component.booleanReturns the value of thecontradictsDeterministicrecord 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 thestatementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Hypothesis
public Hypothesis(CauseCategory causeCategory, String statement, Confidence confidence, List<String> evidenceIds, boolean cited, boolean contradictsDeterministic) Creates an immutable hypothesis.
-
-
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. -
causeCategory
Returns the value of thecauseCategoryrecord component.- Returns:
- the value of the
causeCategoryrecord component
-
statement
-
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
evidenceIds
Returns the value of theevidenceIdsrecord component.- Returns:
- the value of the
evidenceIdsrecord component
-
cited
-
contradictsDeterministic
public boolean contradictsDeterministic()Returns the value of thecontradictsDeterministicrecord component.- Returns:
- the value of the
contradictsDeterministicrecord component
-