|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.cobertura.Ratio
public final class Ratio
Represents x/y where x=numerator and y=denominator.
| Field Summary | |
|---|---|
float |
denominator
|
float |
numerator
|
| Method Summary | |
|---|---|
static Ratio |
create(float x,
float y)
Creates a new instance of Ratio. |
boolean |
equals(java.lang.Object o)
|
int |
getPercentage()
Gets the percentage in integer. |
float |
getPercentageFloat()
Gets the percentage in float. |
int |
hashCode()
|
java.lang.String |
toString()
Gets "x/y" representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final float numerator
public final float denominator
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int getPercentage()
public float getPercentageFloat()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public static Ratio create(float x,
float y)
Ratio.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||