Exemple #1
0
 /**
  * Validator for "linesParsed" parameter. Non-negative is expected. <br>
  * <b>PRE-conditions:</b> NONE <br>
  * <b>POST-conditions:</b> NONE <br>
  * <b>Side-effects:</b> NONE <br>
  * <b>Created on:</b> <i>3:15:27 PM Oct 3, 2015</i>
  *
  * @param linesParsed parameter to be validated
  * @return true if parameter is valid
  * @throws IllegalArgumentException if parameter is invalid
  */
 private static final boolean validateLinesParsed(final long linesParsed) {
   return Validators.nonNegative(linesParsed);
 }
Exemple #2
0
 /**
  * Validator for "linesTotal" parameter. Non-negative is expected. <br>
  * <b>PRE-conditions:</b> NONE <br>
  * <b>POST-conditions:</b> NONE <br>
  * <b>Side-effects:</b> NONE <br>
  * <b>Created on:</b> <i>3:13:43 PM Oct 3, 2015</i>
  *
  * @param linesTotal parameter to be validated
  * @return true if parameter is valid
  * @throws IllegalArgumentException if parameter is invalid
  */
 private static final boolean validateLinesTotal(final long linesTotal) {
   return Validators.nonNegative(linesTotal);
 }