Record Class ReviewedBaseline
java.lang.Object
java.lang.Record
dev.archunitjava.baseline.ReviewedBaseline
public record ReviewedBaseline(String schemaVersion, List<BaselineFinding> findings, List<Suppression> suppressions)
extends Record
Immutable reviewed baseline; creation and updates are explicit operations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReviewedBaseline(String schemaVersion, List<BaselineFinding> findings, List<Suppression> suppressions) Creates an instance of aReviewedBaselinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.findings()Returns the value of thefindingsrecord component.final inthashCode()Returns a hash code value for this object.static ReviewedBaselineof(Collection<BaselineFinding> findings, Collection<Suppression> suppressions) Returns the value of theschemaVersionrecord component.Returns the value of thesuppressionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
ReviewedBaseline
public ReviewedBaseline(String schemaVersion, List<BaselineFinding> findings, List<Suppression> suppressions) Creates an instance of aReviewedBaselinerecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentfindings- the value for thefindingsrecord componentsuppressions- the value for thesuppressionsrecord component
-
-
Method Details
-
of
public static ReviewedBaseline of(Collection<BaselineFinding> findings, Collection<Suppression> suppressions) -
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). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
findings
Returns the value of thefindingsrecord component.- Returns:
- the value of the
findingsrecord component
-
suppressions
Returns the value of thesuppressionsrecord component.- Returns:
- the value of the
suppressionsrecord component
-