Interface OperationStatistic<T extends java.lang.Enum<T>>

    • Method Detail

      • type

        java.lang.Class<T> type()
      • statistic

        default ValueStatistic<java.lang.Long> statistic​(T result)
        Return a ValueStatistic returning the count for the given result.
        Parameters:
        result - the result of interest
        Returns:
        a ValueStatistic instance
      • statistic

        default ValueStatistic<java.lang.Long> statistic​(java.util.Set<T> results)
      • count

        long count​(T type)
        Return the count of operations with the given type.
        Parameters:
        type - the result type
        Returns:
        the operation count
      • sum

        long sum​(java.util.Set<T> types)
      • sum

        long sum()