Class CyclomaticComplexity
- java.lang.Object
-
- com.parasoft.findings.jenkins.coverage.model.Value
-
- com.parasoft.findings.jenkins.coverage.model.IntegerValue
-
- com.parasoft.findings.jenkins.coverage.model.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 Summary
Constructors Constructor Description CyclomaticComplexity(int complexity)
Creates a newCyclomaticComplexity
instance with the specified complexity.CyclomaticComplexity(int complexity, Metric metric)
Creates a newCyclomaticComplexity
instance with the specified complexity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntegerValue
create(int value)
-
Methods inherited from class com.parasoft.findings.jenkins.coverage.model.IntegerValue
add, delta, equals, getValue, hashCode, isOutOfValidRange, max, serialize, toString
-
-
-
-
Constructor Detail
-
CyclomaticComplexity
public CyclomaticComplexity(int complexity)
Creates a newCyclomaticComplexity
instance with the specified complexity. The metric is set toMetric.COMPLEXITY
.- Parameters:
complexity
- the cyclomatic complexity
-
CyclomaticComplexity
public CyclomaticComplexity(int complexity, Metric metric)
Creates a newCyclomaticComplexity
instance with the specified complexity.- Parameters:
complexity
- the cyclomatic complexitymetric
- the metric of this value
-
-
Method Detail
-
create
protected IntegerValue create(int value)
- Specified by:
create
in classIntegerValue
-
-