Record Class SourceMetricOptions
java.lang.Object
java.lang.Record
dev.archunitjava.metrics.SourceMetricOptions
public record SourceMetricOptions(boolean includeSyntheticMembers, boolean includeGeneratedTypes, boolean includePackageInfoTypes, Set<String> generatedAnnotationBinaryNames)
extends Record
Explicit source-count policy. Defaults exclude synthetic/bridge members, conservative generated
types/documents, and package-info metadata types. Record components are counted separately;
actual record fields/accessors in the class file remain ordinary members unless synthetic.
-
Constructor Summary
ConstructorsConstructorDescriptionSourceMetricOptions(boolean includeSyntheticMembers, boolean includeGeneratedTypes, boolean includePackageInfoTypes, Set<String> generatedAnnotationBinaryNames) Creates an instance of aSourceMetricOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceMetricOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratedAnnotationBinaryNamesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeGeneratedTypesrecord component.booleanReturns the value of theincludePackageInfoTypesrecord component.booleanReturns the value of theincludeSyntheticMembersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourceMetricOptions
public SourceMetricOptions(boolean includeSyntheticMembers, boolean includeGeneratedTypes, boolean includePackageInfoTypes, Set<String> generatedAnnotationBinaryNames) Creates an instance of aSourceMetricOptionsrecord class.- Parameters:
includeSyntheticMembers- the value for theincludeSyntheticMembersrecord componentincludeGeneratedTypes- the value for theincludeGeneratedTypesrecord componentincludePackageInfoTypes- the value for theincludePackageInfoTypesrecord componentgeneratedAnnotationBinaryNames- the value for thegeneratedAnnotationBinaryNamesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components 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
-
includeGeneratedTypes
public boolean includeGeneratedTypes()Returns the value of theincludeGeneratedTypesrecord component.- Returns:
- the value of the
includeGeneratedTypesrecord component
-
includePackageInfoTypes
public boolean includePackageInfoTypes()Returns the value of theincludePackageInfoTypesrecord component.- Returns:
- the value of the
includePackageInfoTypesrecord component
-
generatedAnnotationBinaryNames
-