Package elki.logging.statistics
Interface Counter
-
- All Superinterfaces:
Statistic
- All Known Implementing Classes:
AtomicLongCounter,UnsynchronizedLongCounter
public interface Counter extends Statistic
Simple statistic by counting. For example: invocations of a method.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longdecrement()Decrement the counter.longgetValue()Get the current count.longincrement()Increment the counter.longincrement(long i)Increment the counter by i.-
Methods inherited from interface elki.logging.statistics.Statistic
formatValue, getKey
-
-
-
-
Method Detail
-
increment
long increment()
Increment the counter.- Returns:
- Current value.
-
decrement
long decrement()
Decrement the counter.- Returns:
- Current value.
-
getValue
long getValue()
Get the current count.- Returns:
- Current count.
-
increment
long increment(long i)
Increment the counter by i. Note: the increment may be negative!- Parameters:
i- increment.- Returns:
- Current count.
-
-