|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.analysis.AbstractCounter
public abstract class AbstractCounter
Base class for ICounter
implementations.
Field Summary | |
---|---|
protected int |
covered
covered number of items |
protected int |
total
total number of items |
Constructor Summary | |
---|---|
protected |
AbstractCounter(int total,
int covered)
Creates a instance with the given numbers. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getCoveredCount()
Returns the total count of covered items. |
double |
getCoveredRatio()
Calculates the ratio of covered to total count items. |
int |
getNotCoveredCount()
Returns the total count of items not covered. |
double |
getNotCoveredRatio()
Calculates the ratio of not covered to total count items. |
int |
getTotalCount()
Returns the total count of instrumented items. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int total
protected int covered
Constructor Detail |
---|
protected AbstractCounter(int total, int covered)
total
- number of total itemscovered
- number of covered itemsMethod Detail |
---|
public int getTotalCount()
ICounter
getTotalCount
in interface ICounter
public int getCoveredCount()
ICounter
getCoveredCount
in interface ICounter
public int getNotCoveredCount()
ICounter
getNotCoveredCount
in interface ICounter
public double getCoveredRatio()
ICounter
getCoveredRatio
in interface ICounter
public double getNotCoveredRatio()
ICounter
getNotCoveredRatio
in interface ICounter
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |