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