Class IntegerValue
java.lang.Object
com.parasoft.findings.jenkins.coverage.model.Value
com.parasoft.findings.jenkins.coverage.model.IntegerValue
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CyclomaticComplexity
,LinesOfCode
Represents the value of an integer based metric.
- Author:
- Melissa Bauer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAdd the coverage from the specified instance to the coverage of this instance.protected abstract IntegerValue
create
(int value) org.apache.commons.lang3.math.Fraction
Computes the delta of this value with the specified value.boolean
int
getValue()
Returns the value of this metric.int
hashCode()
boolean
isOutOfValidRange
(double threshold) Returns whether this integer value is larger than the given threshold.Merge this coverage with the specified coverage.Serializes this instance into a String.toString()
-
Method Details
-
getValue
public int getValue()Returns the value of this metric.- Returns:
- the integer value
-
add
Description copied from class:Value
Add the coverage from the specified instance to the coverage of this instance. -
create
-
max
Description copied from class:Value
Merge this coverage with the specified coverage. -
delta
Description copied from class:Value
Computes the delta of this value with the specified value. -
isOutOfValidRange
public boolean isOutOfValidRange(double threshold) Returns whether this integer value is larger than the given threshold.- Specified by:
isOutOfValidRange
in classValue
- Parameters:
threshold
- the threshold- Returns:
true
, if this value is larger than the specified threshold
-
serialize
Description copied from class:Value
Serializes this instance into a String. -
toString
-
equals
-
hashCode
public int hashCode()
-