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.
|
ValueStatistic<Long> |
statistic(Set<T> results) |
ValueStatistic<Long> |
statistic(T result)
Return a returning the count for the given result.
|
long |
sum() |
long |
sum(Set<T> types) |
Class<T> |
type() |
begin, end, end
addDerivedStatistic, removeDerivedStatistic
ValueStatistic<Long> statistic(T result)
result
- the result of interestValueStatistic
instanceValueStatistic<Long> statistic(Set<T> results)
long count(T type)
type
- the result typelong sum()
Copyright © 2016. All rights reserved.