/** * {@inheritDoc} * Reset for this implementation returns both the denominator and numerator to * zero. */publicsynchronizedlong getAndReset() {
long prevVal = getValue();
setValue(0, 0);
return prevVal;
}
}
/** * {@inheritDoc} * Reset for this implementation returns both the denominator and numerator to * zero. */publicsynchronizedlong getAndReset() {
long prevVal = getValue();
setValue(0, 0);
return prevVal;
}
}
/** * {@inheritDoc} * Reset for this implementation returns both the denominator and numerator to * zero. */publicsynchronizedlong getAndReset() {
long prevVal = getValue();
setValue(0, 0);
return prevVal;
}
}