public class Counter extends Object
Constructor and Description |
---|
Counter() |
Counter(long start) |
Counter(long start,
long increment) |
Counter(long start,
long increment,
long maximum) |
Modifier and Type | Method and Description |
---|---|
long |
getCounter() |
long |
getIncrement() |
long |
getMaximum() |
long |
getStart() |
boolean |
isLoop() |
long |
next() |
void |
setCounter(long counter) |
void |
setIncrement(long increment) |
void |
setLoop(boolean loop) |
void |
setMaximum(long maximum) |
public Counter()
public Counter(long start)
public Counter(long start, long increment)
public Counter(long start, long increment, long maximum)
public long getCounter()
public long getIncrement()
public long getMaximum()
public long getStart()
public boolean isLoop()
public void setCounter(long counter)
counter
- The counter to set.public void setIncrement(long increment)
increment
- The increment to set.public void setLoop(boolean loop)
loop
- The loop to set.public void setMaximum(long maximum)
maximum
- The maximum to set.public long next()