Class CyclomaticComplexity

  • All Implemented Interfaces:
    Serializable

    public final class CyclomaticComplexity
    extends IntegerValue
    Represents the cyclomatic complexity in a particular code block.
    Author:
    Melissa Bauer
    See Also:
    Serialized Form
    • Constructor Detail

      • CyclomaticComplexity

        public CyclomaticComplexity​(int complexity)
        Creates a new CyclomaticComplexity instance with the specified complexity. The metric is set to Metric.COMPLEXITY.
        Parameters:
        complexity - the cyclomatic complexity
      • CyclomaticComplexity

        public CyclomaticComplexity​(int complexity,
                                    Metric metric)
        Creates a new CyclomaticComplexity instance with the specified complexity.
        Parameters:
        complexity - the cyclomatic complexity
        metric - the metric of this value