|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.gmetrics.metric.coverage.Ratio
class Ratio
Represents a simple ratio of X / Y
| Field Summary | |
|---|---|
static def |
ZERO
|
| Property Summary | |
|---|---|
int |
denominator
|
int |
numerator
|
| Constructor Summary | |
Ratio(int numerator, int denominator)
|
|
| Method Summary | |
|---|---|
Object
|
asType(Class theClass)
|
Ratio
|
plus(Ratio ratio)
|
BigDecimal
|
toBigDecimal(int scale, int roundingMode)
|
String
|
toString()
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
public static final def ZERO
| Property Detail |
|---|
final int denominator
final int numerator
| Constructor Detail |
|---|
Ratio(int numerator, int denominator)
| Method Detail |
|---|
Object asType(Class theClass)
Ratio plus(Ratio ratio)
BigDecimal toBigDecimal(int scale, int roundingMode)
@Override String toString()
Groovy Documentation