[New] RoundRobinInt.toStart()

This commit is contained in:
Robert von Burg 2020-08-03 09:19:45 +02:00
parent 1b5e2f8c62
commit 93cec1b799
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}
}