@API(status=MAINTAINED,
since="1.2.3")
public interface StatisticsCollector
Modifier and Type | Method and Description |
---|---|
void |
collect(java.lang.Object... values)
Call this method to record an entry for statistical data about generated values.
|
void |
coverage(java.util.function.Consumer<StatisticsCoverage> checker)
Perform coverage checking for successful property on statistics.
|
void collect(java.lang.Object... values)
values
- Can be anything. The list of these values is considered
a key for the reported table of frequencies. Constraints:
null
java.lang.IllegalArgumentException
- if one of the constraints on values
is violated@API(status=EXPERIMENTAL, since="1.2.3") void coverage(java.util.function.Consumer<StatisticsCoverage> checker)
checker
- Code that consumes a StatisticsCoverage object