Record Class BaselineComparison
java.lang.Object
java.lang.Record
dev.archunitjava.baseline.BaselineComparison
Deterministic classification of current findings against a reviewed baseline.
-
Constructor Summary
ConstructorsConstructorDescriptionBaselineComparison(LocalDate onDate, List<FindingChange> changes) Creates an instance of aBaselineComparisonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchanges()Returns the value of thechangesrecord component.static BaselineComparisoncompare(ReviewedBaseline baseline, ResultReport current, LocalDate onDate) longcount(FindingState state) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.onDate()Returns the value of theonDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BaselineComparison
Creates an instance of aBaselineComparisonrecord class.- Parameters:
onDate- the value for theonDaterecord componentchanges- the value for thechangesrecord component
-
-
Method Details
-
count
-
compare
public static BaselineComparison compare(ReviewedBaseline baseline, ResultReport current, LocalDate onDate) -
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). -
onDate
Returns the value of theonDaterecord component.- Returns:
- the value of the
onDaterecord component
-
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-