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
Represents the cyclomatic complexity in a particular code block.
- Author:
- Melissa Bauer
- See Also:
-
Constructor Summary
ConstructorDescriptionCyclomaticComplexity
(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
Methods inherited from class com.parasoft.findings.jenkins.coverage.model.IntegerValue
add, delta, equals, getValue, hashCode, isOutOfValidRange, max, serialize, toString
-
Constructor Details
-
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
Creates a newCyclomaticComplexity
instance with the specified complexity.- Parameters:
complexity
- the cyclomatic complexitymetric
- the metric of this value
-
-
Method Details
-
create
- Specified by:
create
in classIntegerValue
-