public final class MetricImpl extends DebugValue implements DebugMetric
| Constructor and Description |
|---|
MetricImpl(String name,
boolean conditional) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long value)
|
void |
increment()
Adds 1 to this counter if metering is
enabled or this is an
unconditional metric. |
String |
toString(long value) |
addToCurrentValue, compareTo, getCurrentValue, getIndex, getName, isConditional, setConditional, setCurrentValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrentValue, isConditional, isEnabled, setConditionalpublic MetricImpl(String name, boolean conditional)
public void increment()
DebugMetricenabled or this is an
unconditional metric.increment in interface DebugMetricpublic void add(long value)
DebugMetricadd in interface DebugMetricpublic String toString(long value)
toString in class DebugValue