|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.jacoco.model.Coverage
@ExportedBean public final class Coverage
Represents x/y where x=missed and y=covered.
| Constructor Summary | |
|---|---|
Coverage()
|
|
Coverage(int missed,
int covered)
|
|
| Method Summary | |
|---|---|
void |
accumulate(int missed,
int covered)
Adds the given missed and covered values to the ones already contained in this ratio. |
void |
accumulatePP(int missed,
int covered)
|
boolean |
equals(Object o)
|
int |
getCovered()
|
int |
getMissed()
|
int |
getPercentage()
Gets the percentage as an integer between 0 and 100. |
float |
getPercentageFloat()
Gets the percentage as a float between 0f and 100f. |
int |
getTotal()
|
CoverageElement.Type |
getType()
|
int |
hashCode()
|
boolean |
isInitialized()
|
void |
setType(CoverageElement.Type type)
|
String |
toString()
Gets "missed/covered (%)" representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Coverage(int missed,
int covered)
public Coverage()
| Method Detail |
|---|
public int getMissed()
public int getCovered()
public int getTotal()
public String toString()
toString in class Object@Exported public int getPercentage()
@Exported public float getPercentageFloat()
public CoverageElement.Type getType()
public void setType(CoverageElement.Type type)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void accumulate(int missed,
int covered)
missed - The amount to add to the missed.covered - The amount to add to the covered.
public void accumulatePP(int missed,
int covered)
public boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||