Record Class ResultRenderLimits
java.lang.Object
java.lang.Record
dev.archunitjava.report.ResultRenderLimits
public record ResultRenderLimits(int maxViolationsPerRule, int maxEvidencePerViolation, int maxDiagnosticsPerRule)
extends Record
Explicit bounds for human-oriented result renderers.
-
Constructor Summary
ConstructorsConstructorDescriptionResultRenderLimits(int maxViolationsPerRule, int maxEvidencePerViolation, int maxDiagnosticsPerRule) Creates an instance of aResultRenderLimitsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultRenderLimitsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxDiagnosticsPerRulerecord component.intReturns the value of themaxEvidencePerViolationrecord component.intReturns the value of themaxViolationsPerRulerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResultRenderLimits
public ResultRenderLimits(int maxViolationsPerRule, int maxEvidencePerViolation, int maxDiagnosticsPerRule) Creates an instance of aResultRenderLimitsrecord class.- Parameters:
maxViolationsPerRule- the value for themaxViolationsPerRulerecord componentmaxEvidencePerViolation- the value for themaxEvidencePerViolationrecord componentmaxDiagnosticsPerRule- the value for themaxDiagnosticsPerRulerecord component
-
-
Method Details
-
defaults
-
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 with thecomparemethod from their corresponding wrapper classes. -
maxViolationsPerRule
public int maxViolationsPerRule()Returns the value of themaxViolationsPerRulerecord component.- Returns:
- the value of the
maxViolationsPerRulerecord component
-
maxEvidencePerViolation
public int maxEvidencePerViolation()Returns the value of themaxEvidencePerViolationrecord component.- Returns:
- the value of the
maxEvidencePerViolationrecord component
-
maxDiagnosticsPerRule
public int maxDiagnosticsPerRule()Returns the value of themaxDiagnosticsPerRulerecord component.- Returns:
- the value of the
maxDiagnosticsPerRulerecord component
-