Record Class BaselineFinding
java.lang.Object
java.lang.Record
dev.archunitjava.baseline.BaselineFinding
- All Implemented Interfaces:
Comparable<BaselineFinding>
public record BaselineFinding(String identityFingerprint, String evidenceFingerprint, String exactFingerprint, String ruleId, String violationId, String violationCode, String severity, List<String> subjects, List<String> subjectIds, List<String> evidenceLocations)
extends Record
implements Comparable<BaselineFinding>
Reviewable snapshot and two-part stable fingerprint for one rule violation.
-
Constructor Summary
ConstructorsConstructorDescriptionBaselineFinding(String identityFingerprint, String evidenceFingerprint, String exactFingerprint, String ruleId, String violationId, String violationCode, String severity, List<String> subjects, List<String> subjectIds, List<String> evidenceLocations) Creates an instance of aBaselineFindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BaselineFindingcapture(RuleResult result, Violation violation) intcompareTo(BaselineFinding other) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevidenceFingerprintrecord component.Returns the value of theevidenceLocationsrecord component.Returns the value of theexactFingerprintrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentityFingerprintrecord component.ruleId()Returns the value of theruleIdrecord component.severity()Returns the value of theseverityrecord component.Returns the value of thesubjectIdsrecord component.subjects()Returns the value of thesubjectsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theviolationCoderecord component.Returns the value of theviolationIdrecord component.
-
Constructor Details
-
BaselineFinding
public BaselineFinding(String identityFingerprint, String evidenceFingerprint, String exactFingerprint, String ruleId, String violationId, String violationCode, String severity, List<String> subjects, List<String> subjectIds, List<String> evidenceLocations) Creates an instance of aBaselineFindingrecord class.- Parameters:
identityFingerprint- the value for theidentityFingerprintrecord componentevidenceFingerprint- the value for theevidenceFingerprintrecord componentexactFingerprint- the value for theexactFingerprintrecord componentruleId- the value for theruleIdrecord componentviolationId- the value for theviolationIdrecord componentviolationCode- the value for theviolationCoderecord componentseverity- the value for theseverityrecord componentsubjects- the value for thesubjectsrecord componentsubjectIds- the value for thesubjectIdsrecord componentevidenceLocations- the value for theevidenceLocationsrecord component
-
-
Method Details
-
capture
-
compareTo
- Specified by:
compareToin interfaceComparable<BaselineFinding>
-
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). -
identityFingerprint
Returns the value of theidentityFingerprintrecord component.- Returns:
- the value of the
identityFingerprintrecord component
-
evidenceFingerprint
Returns the value of theevidenceFingerprintrecord component.- Returns:
- the value of the
evidenceFingerprintrecord component
-
exactFingerprint
Returns the value of theexactFingerprintrecord component.- Returns:
- the value of the
exactFingerprintrecord component
-
ruleId
Returns the value of theruleIdrecord component.- Returns:
- the value of the
ruleIdrecord component
-
violationId
Returns the value of theviolationIdrecord component.- Returns:
- the value of the
violationIdrecord component
-
violationCode
Returns the value of theviolationCoderecord component.- Returns:
- the value of the
violationCoderecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
subjects
-
subjectIds
-
evidenceLocations
-