Record Class CohesionMetricOptions
java.lang.Object
java.lang.Record
dev.archunitjava.metrics.CohesionMetricOptions
Cohesion policy; static members are always outside class-instance cohesion.
-
Constructor Summary
ConstructorsConstructorDescriptionCohesionMetricOptions(boolean includeSyntheticMembers) Creates an instance of aCohesionMetricOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CohesionMetricOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeSyntheticMembersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CohesionMetricOptions
public CohesionMetricOptions(boolean includeSyntheticMembers) Creates an instance of aCohesionMetricOptionsrecord class.- Parameters:
includeSyntheticMembers- the value for theincludeSyntheticMembersrecord 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. -
includeSyntheticMembers
public boolean includeSyntheticMembers()Returns the value of theincludeSyntheticMembersrecord component.- Returns:
- the value of the
includeSyntheticMembersrecord component
-