app/models/PaginationHelper.java
public void alterNext(int amount) {
        if (next + amount <= maxSize) {
            next += amount;
        }
    }
/**
     * Updates the next index if passed increment is valid
     * To be valid the increment must not exceed the max number of entries
     * @param amount increment amount
     */
Updates the next index if passed increment is valid
To be valid the increment must not exceed the max number of entries
@param amount increment amount
Updates the next index if passed increment is valid To be valid the increment must not exceed the max number of entries @param amount increment amount
public void alterNext(int amount) {
        if (next + amount <= maxSize) {
            next += amount;
        }
    }
public void alterNext ( int amount ) { if ( next + amount <= maxSize ) { next += amount ; } }
Updates the next index if passed increment is valid
 To be valid the increment must not exceed the max number of entries
 @param amount increment amount
Updates the next index if passed increment is valid To be valid the increment must not exceed the max number of entries @param amount increment amount