Record Class DoctorAdvisory.Observation
java.lang.Object
java.lang.Record
com.shaft.doctor.model.DoctorAdvisory.Observation
- Record Components:
statement- safe observation textevidenceIds- submitted evidence referencescited- whether at least one submitted evidence item supports the claim
- Enclosing class:
DoctorAdvisory
-
Constructor Summary
ConstructorsConstructorDescriptionObservation(String statement, List<String> evidenceIds, boolean cited) Creates an immutable observation. -
Method Summary
Modifier and TypeMethodDescriptionbooleancited()Returns the value of thecitedrecord 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
-
Observation
-
-
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. -
statement
-
evidenceIds
Returns the value of theevidenceIdsrecord component.- Returns:
- the value of the
evidenceIdsrecord component
-
cited
-