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

    Constructors
    Constructor
    Description
    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 a SourceCounts record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the blankLineCount record component.
    long
    Returns the value of the codeLineCount record component.
    long
    Returns the value of the commentLineCount record component.
    long
    Returns the value of the constructorCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the fieldCount record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the memberCount record component.
    long
    Returns the value of the methodCount record component.
    long
    Returns the value of the missingSourceTypeCount record component.
    long
    Returns the value of the packageCount record component.
    long
    Returns the value of the physicalLineCount record component.
    long
    Returns the value of the recordComponentCount record component.
    long
    Returns the value of the sourceFileCount record component.
    long
    Returns the value of the staticInitializerCount record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the typeCount record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a SourceCounts record class.
      Parameters:
      packageCount - the value for the packageCount record component
      typeCount - the value for the typeCount record component
      memberCount - the value for the memberCount record component
      fieldCount - the value for the fieldCount record component
      methodCount - the value for the methodCount record component
      constructorCount - the value for the constructorCount record component
      staticInitializerCount - the value for the staticInitializerCount record component
      recordComponentCount - the value for the recordComponentCount record component
      sourceFileCount - the value for the sourceFileCount record component
      physicalLineCount - the value for the physicalLineCount record component
      blankLineCount - the value for the blankLineCount record component
      commentLineCount - the value for the commentLineCount record component
      codeLineCount - the value for the codeLineCount record component
      missingSourceTypeCount - the value for the missingSourceTypeCount record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • packageCount

      public long packageCount()
      Returns the value of the packageCount record component.
      Returns:
      the value of the packageCount record component
    • typeCount

      public long typeCount()
      Returns the value of the typeCount record component.
      Returns:
      the value of the typeCount record component
    • memberCount

      public long memberCount()
      Returns the value of the memberCount record component.
      Returns:
      the value of the memberCount record component
    • fieldCount

      public long fieldCount()
      Returns the value of the fieldCount record component.
      Returns:
      the value of the fieldCount record component
    • methodCount

      public long methodCount()
      Returns the value of the methodCount record component.
      Returns:
      the value of the methodCount record component
    • constructorCount

      public long constructorCount()
      Returns the value of the constructorCount record component.
      Returns:
      the value of the constructorCount record component
    • staticInitializerCount

      public long staticInitializerCount()
      Returns the value of the staticInitializerCount record component.
      Returns:
      the value of the staticInitializerCount record component
    • recordComponentCount

      public long recordComponentCount()
      Returns the value of the recordComponentCount record component.
      Returns:
      the value of the recordComponentCount record component
    • sourceFileCount

      public long sourceFileCount()
      Returns the value of the sourceFileCount record component.
      Returns:
      the value of the sourceFileCount record component
    • physicalLineCount

      public long physicalLineCount()
      Returns the value of the physicalLineCount record component.
      Returns:
      the value of the physicalLineCount record component
    • blankLineCount

      public long blankLineCount()
      Returns the value of the blankLineCount record component.
      Returns:
      the value of the blankLineCount record component
    • commentLineCount

      public long commentLineCount()
      Returns the value of the commentLineCount record component.
      Returns:
      the value of the commentLineCount record component
    • codeLineCount

      public long codeLineCount()
      Returns the value of the codeLineCount record component.
      Returns:
      the value of the codeLineCount record component
    • missingSourceTypeCount

      public long missingSourceTypeCount()
      Returns the value of the missingSourceTypeCount record component.
      Returns:
      the value of the missingSourceTypeCount record component