public class CyclicCounter extends Counter
| Constructor and Description | 
|---|
CyclicCounter()
Creates a new CyclicCounter instance. 
 | 
CyclicCounter(int startValue)
Creates a new CyclicCounter instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
decrement()
Decrements the counter by 1. 
 | 
int | 
decrement(int val)
Decrements the counter by val. 
 | 
int | 
increment()
Increments the counter by 1. 
 | 
int | 
increment(int val)
Increments the counter by val. 
 | 
public CyclicCounter()
public CyclicCounter(int startValue)
startValue - the start value of the counter, 0 by default.Copyright © GigaSpaces.