vertx/src/main/java/eu/internetofus/common/vertx/QueryBuilder.java
/**
   * Add a the restrictions to mark the field to be in the specified range.
   *
   * @param fieldName name of the field.
   * @param from      the value, inclusive, that mark the lowest value of the
   *                  range.
   * @param to        the value, inclusive, that mark the highest value of the
   *                  range.
   *
   * @return the factory that is using.
   */
Add a the restrictions to mark the field to be in the specified range.
@param fieldName name of the field.
@param from      the value, inclusive, that mark the lowest value of the
range.
@param to        the value, inclusive, that mark the highest value of the
range.

@return the factory that is using.
Add a the restrictions to mark the field to be in the specified range . @param fieldName name of the field . @param from the value inclusive that mark the lowest value of the range . @param to the value inclusive that mark the highest value of the range . @return the factory that is using .
public QueryBuilder withRange(final String fieldName, final Number from, final Number to) {
    if (from != null || to != null) {
      final var restriction = new JsonObject();
      if (from != null) {
        restriction.put("$gte", from);
      }
      if (to != null) {
        restriction.put("$lte", to);
      }
      this.query.put(fieldName, restriction);
    }
    return this;
  }
public QueryBuilder withRange ( final String fieldName , final Number from , final Number to ) { if ( from != null || to != null ) { final var restriction = new JsonObject ( ) ; if ( from != null ) { restriction . put ( "$gte" , from ) ; } if ( to != null ) { restriction . put ( "$lte" , to ) ; } this . query . put ( fieldName , restriction ) ; } return this ; }
Add a the restrictions to mark the field to be in the specified range.
Add a the restrictions to mark the field to be in the specified range .