/** * Return <code>maxRows</code> if it is not <code>0</code>, or the specified * {@link Settings#getMaxRows()}. */ public static final int getMaxRows(int maxRows, Settings settings) { return maxRows != 0 ? maxRows : settings.getMaxRows() != null ? settings.getMaxRows() : 0; }