Class Ratio
- java.lang.Object
-
- com.vectorcast.plugins.vectorcastcoverage.Ratio
-
- All Implemented Interfaces:
Serializable
@ExportedBean public final class Ratio extends Object implements Serializable
Represents x/y where x=numerator
and y=denominator
.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Ratio(float... f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(String v)
boolean
equals(Object o)
float
getDenominator()
float
getNumerator()
int
getPercentage()
Gets the percentage in integer.float
getPercentageFloat()
Gets the percentage in float.int
hashCode()
boolean
isInitialized()
void
setValue(String v)
String
toString()
Gets "x/y" representation.
-
-
-
Method Detail
-
getNumerator
public float getNumerator()
-
getDenominator
public float getDenominator()
-
getPercentage
@Exported public int getPercentage()
Gets the percentage in integer.- Returns:
- percentage
-
getPercentageFloat
@Exported public float getPercentageFloat()
Gets the percentage in float.- Returns:
- percentage
-
addValue
public void addValue(String v)
-
setValue
public void setValue(String v)
-
isInitialized
public boolean isInitialized()
-
-