CounterImpl
public interface ICounter
Modifier and Type | Interface | Description |
---|---|---|
static class |
ICounter.CounterValue |
Different values provided by a counter.
|
Modifier and Type | Field | Description |
---|---|---|
static int |
EMPTY |
Status flag for no items (value is 0x00).
|
static int |
FULLY_COVERED |
Status flag when all items are covered (value is 0x02).
|
static int |
NOT_COVERED |
Status flag when all items are not covered (value is 0x01).
|
static int |
PARTLY_COVERED |
Status flag when items are partly covered (value is 0x03).
|
Modifier and Type | Method | Description |
---|---|---|
int |
getCoveredCount() |
Returns the count of covered items.
|
double |
getCoveredRatio() |
Calculates the ratio of covered to total count items.
|
int |
getMissedCount() |
Returns the count of missed items.
|
double |
getMissedRatio() |
Calculates the ratio of missed to total count items.
|
int |
getStatus() |
Returns the coverage status of this counter.
|
int |
getTotalCount() |
Returns the total count of items.
|
double |
getValue(ICounter.CounterValue value) |
Returns the counter value of the given type.
|
static final int EMPTY
static final int NOT_COVERED
static final int FULLY_COVERED
static final int PARTLY_COVERED
double getValue(ICounter.CounterValue value)
value
- value type to returnint getTotalCount()
int getCoveredCount()
int getMissedCount()
double getCoveredRatio()
double getMissedRatio()
int getStatus()
EMPTY
,
NOT_COVERED
,
PARTLY_COVERED
,
FULLY_COVERED
Copyright © 2018. All rights reserved.