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 IntegerValuecreate(int value) org.apache.commons.lang3.math.FractionComputes the delta of this value with the specified value.booleanintgetValue()Returns the value of this metric.inthashCode()booleanisOutOfValidRange(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:ValueAdd the coverage from the specified instance to the coverage of this instance. -
create
-
max
Description copied from class:ValueMerge this coverage with the specified coverage. -
delta
Description copied from class:ValueComputes 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:
isOutOfValidRangein classValue- Parameters:
threshold- the threshold- Returns:
true, if this value is larger than the specified threshold
-
serialize
Description copied from class:ValueSerializes this instance into a String. -
toString
-
equals
-
hashCode
public int hashCode()
-