Record Class DependencyMetricReport
java.lang.Object
java.lang.Record
dev.archunitjava.metrics.DependencyMetricReport
public record DependencyMetricReport(ProjectionDomain domain, List<ComponentDependencyMetrics> components, CumulativeDependencyMetrics cumulative, List<MetricSample> samples)
extends Record
Projection-scoped component and cumulative metrics with threshold-ready samples.
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyMetricReport(ProjectionDomain domain, List<ComponentDependencyMetrics> components, CumulativeDependencyMetrics cumulative, List<MetricSample> samples) Creates an instance of aDependencyMetricReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.Returns the value of thecumulativerecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DependencyMetricReportof(ProjectionDomain domain, List<ComponentDependencyMetrics> components, CumulativeDependencyMetrics cumulative) samples()Returns the value of thesamplesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DependencyMetricReport
public DependencyMetricReport(ProjectionDomain domain, List<ComponentDependencyMetrics> components, CumulativeDependencyMetrics cumulative, List<MetricSample> samples) Creates an instance of aDependencyMetricReportrecord class.- Parameters:
domain- the value for thedomainrecord componentcomponents- the value for thecomponentsrecord componentcumulative- the value for thecumulativerecord componentsamples- the value for thesamplesrecord component
-
-
Method Details
-
of
public static DependencyMetricReport of(ProjectionDomain domain, List<ComponentDependencyMetrics> components, CumulativeDependencyMetrics cumulative) -
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). -
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
cumulative
Returns the value of thecumulativerecord component.- Returns:
- the value of the
cumulativerecord component
-
samples
Returns the value of thesamplesrecord component.- Returns:
- the value of the
samplesrecord component
-