|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.analysis.AbstractCounter
org.jacoco.core.analysis.CounterImpl
public abstract class CounterImpl
ICounter
implementations. Implementing a factory pattern allows to
share counter instances.
Field Summary | |
---|---|
static CounterImpl |
COUNTER_0_0
Constant for Counter with 0/0 values. |
Fields inherited from class org.jacoco.core.analysis.AbstractCounter |
---|
covered, total |
Constructor Summary | |
---|---|
protected |
CounterImpl(int total,
int covered)
Creates a new instance with the given figures. |
Method Summary | |
---|---|
static CounterImpl |
getInstance(boolean covered)
Factory method to retrieve a counter for a single item. |
static CounterImpl |
getInstance(ICounter counter)
Factory method to retrieve a clone ot the given counter. |
static CounterImpl |
getInstance(int total,
boolean covered)
Factory method to retrieve a counter with the given number of items. |
static CounterImpl |
getInstance(int total,
int covered)
Factory method to retrieve a counter with the given number of items. |
abstract CounterImpl |
increment(ICounter counter)
Returns a counter with values incremented by the numbers of the given counter. |
Methods inherited from class org.jacoco.core.analysis.AbstractCounter |
---|
equals, getCoveredCount, getCoveredRatio, getNotCoveredCount, getNotCoveredRatio, getTotalCount, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CounterImpl COUNTER_0_0
Constructor Detail |
---|
protected CounterImpl(int total, int covered)
total
- total number of itemscovered
- covered number of itemsMethod Detail |
---|
public static CounterImpl getInstance(int total, int covered)
total
- total number of itemscovered
- covered number of items
public static CounterImpl getInstance(ICounter counter)
counter
- counter to copy
public static CounterImpl getInstance(int total, boolean covered)
total
- total number of itemscovered
- true
, if all items are covered
public static CounterImpl getInstance(boolean covered)
covered
- true
, if the item is covered
public abstract CounterImpl increment(ICounter counter)
counter
- number of additional total and covered items
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |