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 SummaryConstructors Constructor Description Ratio(float... f)
 - 
Method SummaryAll 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- 
getNumeratorpublic float getNumerator() 
 - 
getDenominatorpublic 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
 
 - 
addValuepublic void addValue(String v) 
 - 
setValuepublic void setValue(String v) 
 - 
isInitializedpublic boolean isInitialized() 
 
- 
 
-