Interface StatisticsCoverage


  • @API(status=MAINTAINED,
         since="1.4.0")
    public interface StatisticsCoverage
    Intermediate object to provide statistics coverage checking capabilities
    See Also:
    Statistics.coverage(Consumer)
    • Method Detail

      • checkQuery

        StatisticsCoverage.CoverageChecker checkQuery​(java.util.function.Predicate<? extends java.util.List<?>> query)
        Execute a query for coverage checking.
        Parameters:
        query - A Predicate that takes the collected values as parameter and returns true if the specific values shall be counted.
      • checkPattern

        @API(status=EXPERIMENTAL,
             since="1.7.1")
        StatisticsCoverage.CoverageChecker checkPattern​(java.lang.String regex)
        Match collected values against a regular expression. Count all values that match.

        Values must be instances of type of CharSequence, e.g. String or StringBuffer. Values of other types never match.

        Parameters:
        regex - A regular expression