Enum Class MetricName

java.lang.Object
java.lang.Enum<MetricName>
dev.archunitjava.metrics.MetricName
All Implemented Interfaces:
Serializable, Comparable<MetricName>, Constable

public enum MetricName extends Enum<MetricName>
Stable metric identifiers with one mandatory unit each.
  • Enum Constant Details

    • PACKAGE_TYPE_COUNT

      public static final MetricName PACKAGE_TYPE_COUNT
    • TYPE_MEMBER_COUNT

      public static final MetricName TYPE_MEMBER_COUNT
    • TYPE_FIELD_COUNT

      public static final MetricName TYPE_FIELD_COUNT
    • TYPE_METHOD_COUNT

      public static final MetricName TYPE_METHOD_COUNT
    • TYPE_CONSTRUCTOR_COUNT

      public static final MetricName TYPE_CONSTRUCTOR_COUNT
    • TYPE_STATIC_INITIALIZER_COUNT

      public static final MetricName TYPE_STATIC_INITIALIZER_COUNT
    • TYPE_RECORD_COMPONENT_COUNT

      public static final MetricName TYPE_RECORD_COMPONENT_COUNT
    • SOURCE_PHYSICAL_LINES

      public static final MetricName SOURCE_PHYSICAL_LINES
    • SOURCE_BLANK_LINES

      public static final MetricName SOURCE_BLANK_LINES
    • SOURCE_COMMENT_LINES

      public static final MetricName SOURCE_COMMENT_LINES
    • SOURCE_CODE_LINES

      public static final MetricName SOURCE_CODE_LINES
    • CK_LCOM1

      public static final MetricName CK_LCOM1
    • LCOM4

      public static final MetricName LCOM4
    • HENDERSON_SELLERS_LCOM

      public static final MetricName HENDERSON_SELLERS_LCOM
    • AFFERENT_COUPLING

      public static final MetricName AFFERENT_COUPLING
    • EFFERENT_COUPLING

      public static final MetricName EFFERENT_COUPLING
    • INSTABILITY

      public static final MetricName INSTABILITY
    • ABSTRACTNESS

      public static final MetricName ABSTRACTNESS
    • DISTANCE_FROM_MAIN_SEQUENCE

      public static final MetricName DISTANCE_FROM_MAIN_SEQUENCE
    • CUMULATIVE_COMPONENT_DEPENDENCY

      public static final MetricName CUMULATIVE_COMPONENT_DEPENDENCY
    • AVERAGE_COMPONENT_DEPENDENCY

      public static final MetricName AVERAGE_COMPONENT_DEPENDENCY
    • RELATIVE_AVERAGE_COMPONENT_DEPENDENCY

      public static final MetricName RELATIVE_AVERAGE_COMPONENT_DEPENDENCY
    • NORMALIZED_CUMULATIVE_COMPONENT_DEPENDENCY

      public static final MetricName NORMALIZED_CUMULATIVE_COMPONENT_DEPENDENCY
  • Method Details

    • values

      public static MetricName[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MetricName valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • unit

      public MetricUnit unit()