public class UnsynchronizedLongCounter extends AbstractStatistic implements Counter
| Modifier and Type | Field and Description |
|---|---|
(package private) long |
counter
The counter to use.
|
key| Constructor and Description |
|---|
UnsynchronizedLongCounter(java.lang.String key)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
decrement()
Decrement the counter.
|
java.lang.String |
formatValue()
Get a formatted version of the value, for output.
|
long |
getValue()
Get the current count.
|
long |
increment()
Increment the counter.
|
long |
increment(long i)
Increment the counter by i.
|
getKey, toStringpublic UnsynchronizedLongCounter(java.lang.String key)
key - Key to report.public long increment()
Counterpublic long decrement()
Counterpublic long increment(long i)
Counterpublic long getValue()
Counterpublic java.lang.String formatValue()
StatisticformatValue in interface StatisticCopyright © 2019 ELKI Development Team. License information.