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=numeratorand 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 voidaddValue(String v)booleanequals(Object o)floatgetDenominator()floatgetNumerator()intgetPercentage()Gets the percentage in integer.floatgetPercentageFloat()Gets the percentage in float.inthashCode()booleanisInitialized()voidsetValue(String v)StringtoString()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()
-
-