@API(status=MAINTAINED,
since="1.2.3")
public interface StatisticsCollector
Modifier and Type | Method and Description |
---|---|
StatisticsCollector |
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.
|
StatisticsCollector collect(@Nullable java.lang.Object... values)
For examples see Statistics.collect(Object...)
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=MAINTAINED, since="1.4.0") void coverage(java.util.function.Consumer<StatisticsCoverage> checker)
For examples see Statistics.coverage(Consumer)
checker
- Code that consumes a StatisticsCoverage object