@Override
    public int nextPosition() {
        int n = this.cursor.get() + 1;
        if (n >= this.size) {
            return 0;
        }
        return n;
    }
The current position of the cursor
helper/src/main/java/me/lucko/helper/bucket/CycleImpl.java