@API(status=MAINTAINED,
since="1.2.3")
public class Statistics
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Statistics.StatisticsFacade |
Modifier and Type | Method and Description |
---|---|
static void |
collect(java.lang.Object... values)
Call this method to record an entry for statistical data about generated values.
|
static void |
coverage(java.util.function.Consumer<StatisticsCoverage> checker)
Perform coverage checking for successful property on statistics
for values collected with collect(Object...)
|
static void |
coverageOf(java.lang.String label,
java.util.function.Consumer<StatisticsCoverage> checker)
Perform coverage checking for successful property on labelled statistics
for values collected with collect(Object...)
|
static StatisticsCollector |
label(java.lang.String label)
Call this method to get a labeled instance of StatisticsCollector.
|
public static 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 violatedpublic static StatisticsCollector label(java.lang.String label)
label
- The label will be used for reporting the collected statistical values@API(status=EXPERIMENTAL, since="1.2.3") public static void coverage(java.util.function.Consumer<StatisticsCoverage> checker)
checker
- Code that consumes a StatisticsCoverage object@API(status=EXPERIMENTAL, since="1.2.3") public static void coverageOf(java.lang.String label, java.util.function.Consumer<StatisticsCoverage> checker)
label
- The label that was used for reporting the collected statistical valueschecker
- Code that consumes a StatisticsCoverage object