Record Class SourceCounts
java.lang.Object
java.lang.Record
dev.archunitjava.metrics.SourceCounts
public record SourceCounts(long packageCount, long typeCount, long memberCount, long fieldCount, long methodCount, long constructorCount, long staticInitializerCount, long recordComponentCount, long sourceFileCount, long physicalLineCount, long blankLineCount, long commentLineCount, long codeLineCount, long missingSourceTypeCount)
extends Record
Aggregate counts; missing source never removes an otherwise included type or member.
-
Constructor Summary
ConstructorsConstructorDescriptionSourceCounts(long packageCount, long typeCount, long memberCount, long fieldCount, long methodCount, long constructorCount, long staticInitializerCount, long recordComponentCount, long sourceFileCount, long physicalLineCount, long blankLineCount, long commentLineCount, long codeLineCount, long missingSourceTypeCount) Creates an instance of aSourceCountsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theblankLineCountrecord component.longReturns the value of thecodeLineCountrecord component.longReturns the value of thecommentLineCountrecord component.longReturns the value of theconstructorCountrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefieldCountrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thememberCountrecord component.longReturns the value of themethodCountrecord component.longReturns the value of themissingSourceTypeCountrecord component.longReturns the value of thepackageCountrecord component.longReturns the value of thephysicalLineCountrecord component.longReturns the value of therecordComponentCountrecord component.longReturns the value of thesourceFileCountrecord component.longReturns the value of thestaticInitializerCountrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetypeCountrecord component.
-
Constructor Details
-
SourceCounts
public SourceCounts(long packageCount, long typeCount, long memberCount, long fieldCount, long methodCount, long constructorCount, long staticInitializerCount, long recordComponentCount, long sourceFileCount, long physicalLineCount, long blankLineCount, long commentLineCount, long codeLineCount, long missingSourceTypeCount) Creates an instance of aSourceCountsrecord class.- Parameters:
packageCount- the value for thepackageCountrecord componenttypeCount- the value for thetypeCountrecord componentmemberCount- the value for thememberCountrecord componentfieldCount- the value for thefieldCountrecord componentmethodCount- the value for themethodCountrecord componentconstructorCount- the value for theconstructorCountrecord componentstaticInitializerCount- the value for thestaticInitializerCountrecord componentrecordComponentCount- the value for therecordComponentCountrecord componentsourceFileCount- the value for thesourceFileCountrecord componentphysicalLineCount- the value for thephysicalLineCountrecord componentblankLineCount- the value for theblankLineCountrecord componentcommentLineCount- the value for thecommentLineCountrecord componentcodeLineCount- the value for thecodeLineCountrecord componentmissingSourceTypeCount- the value for themissingSourceTypeCountrecord 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 with thecomparemethod from their corresponding wrapper classes. -
packageCount
public long packageCount()Returns the value of thepackageCountrecord component.- Returns:
- the value of the
packageCountrecord component
-
typeCount
public long typeCount()Returns the value of thetypeCountrecord component.- Returns:
- the value of the
typeCountrecord component
-
memberCount
public long memberCount()Returns the value of thememberCountrecord component.- Returns:
- the value of the
memberCountrecord component
-
fieldCount
public long fieldCount()Returns the value of thefieldCountrecord component.- Returns:
- the value of the
fieldCountrecord component
-
methodCount
public long methodCount()Returns the value of themethodCountrecord component.- Returns:
- the value of the
methodCountrecord component
-
constructorCount
public long constructorCount()Returns the value of theconstructorCountrecord component.- Returns:
- the value of the
constructorCountrecord component
-
staticInitializerCount
public long staticInitializerCount()Returns the value of thestaticInitializerCountrecord component.- Returns:
- the value of the
staticInitializerCountrecord component
-
recordComponentCount
public long recordComponentCount()Returns the value of therecordComponentCountrecord component.- Returns:
- the value of the
recordComponentCountrecord component
-
sourceFileCount
public long sourceFileCount()Returns the value of thesourceFileCountrecord component.- Returns:
- the value of the
sourceFileCountrecord component
-
physicalLineCount
public long physicalLineCount()Returns the value of thephysicalLineCountrecord component.- Returns:
- the value of the
physicalLineCountrecord component
-
blankLineCount
public long blankLineCount()Returns the value of theblankLineCountrecord component.- Returns:
- the value of the
blankLineCountrecord component
-
commentLineCount
public long commentLineCount()Returns the value of thecommentLineCountrecord component.- Returns:
- the value of the
commentLineCountrecord component
-
codeLineCount
public long codeLineCount()Returns the value of thecodeLineCountrecord component.- Returns:
- the value of the
codeLineCountrecord component
-
missingSourceTypeCount
public long missingSourceTypeCount()Returns the value of themissingSourceTypeCountrecord component.- Returns:
- the value of the
missingSourceTypeCountrecord component
-