@API(status=MAINTAINED,
since="1.4.0")
public interface StatisticsCoverage
Statistics.coverage(Consumer)
Modifier and Type | Interface and Description |
---|---|
static interface |
StatisticsCoverage.CoverageChecker |
Modifier and Type | Method and Description |
---|---|
StatisticsCoverage.CoverageChecker |
check(java.lang.Object... values)
Select a specific values set for coverage checking.
|
StatisticsCoverage.CoverageChecker |
checkPattern(java.lang.String regex)
Match collected values against a regular expression.
|
StatisticsCoverage.CoverageChecker |
checkQuery(java.util.function.Predicate<? extends java.util.List<?>> query)
Execute a query for coverage checking.
|
StatisticsCoverage.CoverageChecker check(java.lang.Object... values)
values
- Can be anything. Must be equal to the values used in Statistics.collect(Object...)StatisticsCoverage.CoverageChecker checkQuery(java.util.function.Predicate<? extends java.util.List<?>> query)
query
- A Predicate
that takes the collected values as parameter
and returns true if the specific values shall be counted.@API(status=EXPERIMENTAL, since="1.7.1") StatisticsCoverage.CoverageChecker checkPattern(java.lang.String regex)
Values must be instances of type of CharSequence, e.g. String or StringBuffer. Values of other types never match.
regex
- A regular expression