public class CumulativeFunctionCounter<T> extends AbstractMeter implements FunctionCounter
FunctionCounter.Builder<T>
Meter.Id, Meter.Type
Constructor and Description |
---|
CumulativeFunctionCounter(Meter.Id id,
T obj,
java.util.function.ToDoubleFunction<T> f) |
Modifier and Type | Method and Description |
---|---|
double |
count()
The cumulative count since this counter was created.
|
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, measure, type
public double count()
FunctionCounter
count
in interface FunctionCounter