|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.clover.Ratio
public final class Ratio
Represents x/y where x=numerator and y=denominator.
| Field Summary | |
|---|---|
float |
denominator
|
float |
numerator
|
static NumberFormat |
PC_WIDTH_FORMAT
|
| Method Summary | |
|---|---|
static Ratio |
create(float x,
float y)
Creates a new instance of Ratio. |
boolean |
equals(Object o)
|
String |
getHasData()
|
String |
getPcCovered()
|
String |
getPcUncovered()
|
String |
getPcWidth()
|
int |
getPercentage()
Gets the percentage in integer. |
String |
getPercentage1d()
Gets the percentage in integer. |
float |
getPercentageFloat()
Gets the percentage in float. |
String |
getPercentageStr()
|
int |
hashCode()
|
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
public static final NumberFormat PC_WIDTH_FORMAT
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getPercentage1d()
public String getPercentageStr()
public String getPcWidth()
getPcWidth in interface CoverageBarProviderpublic String getPcUncovered()
getPcUncovered in interface CoverageBarProviderpublic String getPcCovered()
getPcCovered in interface CoverageBarProviderpublic String getHasData()
getHasData in interface CoverageBarProviderpublic int getPercentage()
public float getPercentageFloat()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class 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 | |||||||||