Enum Class LcomVariant

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

public enum LcomVariant extends Enum<LcomVariant>
Supported, explicitly distinct lack-of-cohesion formulas.
  • Enum Constant Details

    • CK_LCOM1

      public static final LcomVariant CK_LCOM1
      max(method pairs sharing no instance field - pairs sharing a field, 0).
    • LCOM4

      public static final LcomVariant LCOM4
      Connected components of instance methods joined by shared fields or direct self calls.
    • HENDERSON_SELLERS

      public static final LcomVariant HENDERSON_SELLERS
      min(1, max(0, (M - average methods per field) / (M - 1))).
  • Method Details

    • values

      public static LcomVariant[] 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 LcomVariant 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
    • metric

      public MetricName metric()