components/src/test/java/eu/internetofus/common/components/CRUDContext.java
/**
   * Create a filter to filter the values requested by a query.
   *
   * @param paramNames names of the parameters to filter the values.
   *
   * @return the filter with the specified query parameters with the same value on
   *         the model.
   */
Create a filter to filter the values requested by a query.
@param paramNames names of the parameters to filter the values.

@return the filter with the specified query parameters with the same value on
the model.
Create a filter to filter the values requested by a query . @param paramNames names of the parameters to filter the values . @return the filter with the specified query parameters with the same value on the model .
public BiPredicate<RoutingContext, JsonObject> createValueFilter(final String... paramNames) {
    return (ctx, value) -> {
      if (paramNames != null) {
        for (final var paramName : paramNames) {
          final var paramValue = ctx.queryParams().get(paramName);
          if (paramValue != null && !paramValue.equals(value.getString(paramName))) {
            return false;
          }
        }
      }
      return true;
    };
  }
public BiPredicate < RoutingContext , JsonObject > createValueFilter ( final String ... paramNames ) { return ( ctx , value ) -> { if ( paramNames != null ) { for ( final var paramName : paramNames ) { final var paramValue = ctx . queryParams ( ) . get ( paramName ) ; if ( paramValue != null && ! paramValue . equals ( value . getString ( paramName ) ) ) { return false ; } } } return true ; } ; }
Create a filter to filter the values requested by a query.
Create a filter to filter the values requested by a query .