Enum Class LcomVariant
- All Implemented Interfaces:
Serializable, Comparable<LcomVariant>, Constable
Supported, explicitly distinct lack-of-cohesion formulas.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionmax(method pairs sharing no instance field - pairs sharing a field, 0).min(1, max(0, (M - average methods per field) / (M - 1))).Connected components of instance methods joined by shared fields or direct self calls. -
Method Summary
Modifier and TypeMethodDescriptionmetric()static LcomVariantReturns the enum constant of this class with the specified name.static LcomVariant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CK_LCOM1
max(method pairs sharing no instance field - pairs sharing a field, 0). -
LCOM4
Connected components of instance methods joined by shared fields or direct self calls. -
HENDERSON_SELLERS
min(1, max(0, (M - average methods per field) / (M - 1))).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
metric
-