public interface OperationStatistic<T extends Enum<T>> extends OperationObserver<T>, SourceStatistic<ChainedOperationObserver<? super T>>
| Modifier and Type | Method and Description |
|---|---|
long |
count(T type)
Return the count of operations with the given type.
|
default ValueStatistic<Long> |
statistic(Set<T> results) |
default ValueStatistic<Long> |
statistic(T result)
Return a
ValueStatistic returning the count for the given result. |
long |
sum() |
long |
sum(Set<T> types) |
Class<T> |
type() |
begin, end, endaddDerivedStatistic, removeDerivedStatisticdefault ValueStatistic<Long> statistic(T result)
ValueStatistic returning the count for the given result.result - the result of interestValueStatistic instancedefault ValueStatistic<Long> statistic(Set<T> results)
long count(T type)
type - the result typelong sum()
Copyright © 2018. All rights reserved.