Package com.aim2be.platform.archunit
Record Class NoBlanketCatchArchTest.WarnResult
java.lang.Object
java.lang.Record
com.aim2be.platform.archunit.NoBlanketCatchArchTest.WarnResult
- Record Components:
count- the number of blanket-catch violations (0when compliant)report- the formatted failure-report text, or""when compliant
- Enclosing class:
- NoBlanketCatchArchTest
Immutable carrier for a single rule evaluation — both the violation
count (for a ratchet assertion) and the formatted report
(for warn-mode logging), produced by one scan. See NoBlanketCatchArchTest.evaluate(JavaClasses).-
Constructor Summary
ConstructorsConstructorDescriptionWarnResult(int count, String report) Enforces the documented invariants:count >= 0,reportnon-null. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.report()Returns the value of thereportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WarnResult
Enforces the documented invariants:count >= 0,reportnon-null.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-