[New] RoundRobinInt.toStart()
This commit is contained in:
parent
1b5e2f8c62
commit
93cec1b799
|
@ -1,8 +1,8 @@
|
|||
package li.strolch.utils;
|
||||
|
||||
public class RoundRobinInt {
|
||||
private int start;
|
||||
private int stop;
|
||||
private final int start;
|
||||
private final int stop;
|
||||
private int index;
|
||||
|
||||
public RoundRobinInt(int start, int stop) {
|
||||
|
@ -20,4 +20,8 @@ public class RoundRobinInt {
|
|||
this.index = this.start;
|
||||
return next;
|
||||
}
|
||||
|
||||
public void toStart() {
|
||||
this.index = this.start;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue