Package org.gmetrics.metric.coverage
Class Ratio
java.lang.Object
org.gmetrics.metric.coverage.Ratio
- All Implemented Interfaces:
groovy.lang.GroovyObject
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intgroovy.lang.MetaClassfinal intgetProperty(String property) invokeMethod(String method, Object arguments) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value) toBigDecimal(int scale, int roundingMode) toString()
-
Field Details
-
ZERO
-
-
Constructor Details
-
Ratio
public Ratio(int numerator, int denominator)
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject
-
getNumerator
public final int getNumerator() -
getDenominator
public final int getDenominator() -
plus
-
toBigDecimal
-
asType
-
toString
-