Record Class SourceMetricReport
java.lang.Object
java.lang.Record
dev.archunitjava.metrics.SourceMetricReport
public record SourceMetricReport(SourceCounts aggregate, List<MetricSample> samples, List<TypeId> missingSourceTypes, List<TypeId> excludedGeneratedTypes)
extends Record
Aggregate counts plus threshold-ready subject samples and explicit omissions.
-
Constructor Summary
ConstructorsConstructorDescriptionSourceMetricReport(SourceCounts aggregate, List<MetricSample> samples, List<TypeId> missingSourceTypes, List<TypeId> excludedGeneratedTypes) Creates an instance of aSourceMetricReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludedGeneratedTypesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themissingSourceTypesrecord component.samples()Returns the value of thesamplesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourceMetricReport
public SourceMetricReport(SourceCounts aggregate, List<MetricSample> samples, List<TypeId> missingSourceTypes, List<TypeId> excludedGeneratedTypes) Creates an instance of aSourceMetricReportrecord class.- Parameters:
aggregate- the value for theaggregaterecord componentsamples- the value for thesamplesrecord componentmissingSourceTypes- the value for themissingSourceTypesrecord componentexcludedGeneratedTypes- the value for theexcludedGeneratedTypesrecord component
-
-
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). -
aggregate
Returns the value of theaggregaterecord component.- Returns:
- the value of the
aggregaterecord component
-
samples
Returns the value of thesamplesrecord component.- Returns:
- the value of the
samplesrecord component
-
missingSourceTypes
-
excludedGeneratedTypes
-