jut.ref
Interface ICount
- All Known Implementing Classes: 
 - Counter, SimpleCounter
 
public interface ICount
generic long counter interface.
- Author:
 
  - Georg Dietrich
 
| 
Field Summary | 
static ICount | 
DUMMY
 
          dummy implementation always returning 0 as count. | 
 
| 
Method Summary | 
 ICount | 
add(long val)
 
          add a value to the counter. | 
 long | 
get()
 
            | 
 
DUMMY
static final ICount DUMMY
- dummy implementation always returning 0 as count.
 
add
ICount add(long val)
- add a value to the counter.
- Parameters:
 val - - the value to add to this counter.
- Returns:
 - a reference to the object itself.
 
 
 
get
long get()
- Returns:
 - the current value of the counter.