Record Class Finding
java.lang.Object
java.lang.Record
com.shaft.doctor.model.Finding
- Record Components:
id- stable finding identifierkind- whether this is an observation or inferencecategory- associated cause categoryseverity- finding severitytitle- concise titledetail- safe explanatory detailruleId- rule that emitted the findingevidenceIds- cited evidence identifiers
public record Finding(String id, Finding.Kind kind, CauseCategory category, Finding.Severity severity, String title, String detail, String ruleId, List<String> evidenceIds)
extends Record
Cited observation or inference emitted by a rule.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFinding epistemic type.static enumFinding severity. -
Constructor Summary
ConstructorsConstructorDescriptionFinding(String id, Finding.Kind kind, CauseCategory category, Finding.Severity severity, String title, String detail, String ruleId, List<String> evidenceIds) Creates a validated finding. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.detail()Returns the value of thedetailrecord 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.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.ruleId()Returns the value of theruleIdrecord component.severity()Returns the value of theseverityrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Finding
public Finding(String id, Finding.Kind kind, CauseCategory category, Finding.Severity severity, String title, String detail, String ruleId, List<String> evidenceIds) Creates a validated finding.
-
-
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). -
id
-
kind
-
category
-
severity
-
title
-
detail
-
ruleId
-
evidenceIds
Returns the value of theevidenceIdsrecord component.- Returns:
- the value of the
evidenceIdsrecord component
-