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