components/src/test/java/eu/internetofus/common/components/CRUDContext.java
/**
   * Return the integer value defined on a query parameter.
   *
   * @param ctx          routing context to extract the query parameters.
   * @param key          identifier of the query parameter.
   * @param defaultValue value to return if is not defined or valid.
   *
   * @return the integer defined in the query parameters, or the
   *         {@code defaultValue} if it is not defined or it is not a valid
   *         integer.
   *
   */
Return the integer value defined on a query parameter.
@param ctx          routing context to extract the query parameters.
@param key          identifier of the query parameter.
@param defaultValue value to return if is not defined or valid.

@return the integer defined in the query parameters, or the
defaultValue if it is not defined or it is not a valid
integer.
Return the integer value defined on a query parameter . @param ctx routing context to extract the query parameters . @param key identifier of the query parameter . @param defaultValue value to return if is not defined or valid . @return the integer defined in the query parameters or the defaultValue if it is not defined or it is not a valid integer .
public int queryIntParam(final RoutingContext ctx, final String key, final int defaultValue) {
    try {
      final var param = ctx.queryParams().get(key);
      return Integer.parseInt(param);
    } catch (final Throwable ignored) {
      return defaultValue;
    }
  }
public int queryIntParam ( final RoutingContext ctx , final String key , final int defaultValue ) { try { final var param = ctx . queryParams ( ) . get ( key ) ; return Integer . parseInt ( param ) ; } catch ( final Throwable ignored ) { return defaultValue ; } }
Return the integer value defined on a query parameter.
Return the integer value defined on a query parameter .