vertx/src/main/java/eu/internetofus/common/vertx/QueryBuilder.java
/**
   * Add a the restrictions to mark the field with an specific value or a regular
   * expression. It it is a regular expression it has to be between {@code /}.
   *
   * @param fieldName name of the field.
   * @param value     or regular expression for the field. If it is {@code null}
   *                  the field is ignored.
   *
   * @return the factory that is using.
   */
Add a the restrictions to mark the field with an specific value or a regular
expression. It it is a regular expression it has to be between  /.

@param fieldName name of the field.
@param value     or regular expression for the field. If it is  null
the field is ignored.

@return the factory that is using.
Add a the restrictions to mark the field with an specific value or a regular expression . It it is a regular expression it has to be between / . @param fieldName name of the field . @param value or regular expression for the field . If it is null the field is ignored . @return the factory that is using .
public QueryBuilder withEqOrRegex(final String fieldName, final String value) {
    if (value != null) {
      if (this.containsPattern(value)) {
        final var pattern = this.extractPattern(value);
        return this.withRegex(fieldName, pattern);
      } else {
        this.query.put(fieldName, value);
      }
    }
    return this;
  }
public QueryBuilder withEqOrRegex ( final String fieldName , final String value ) { if ( value != null ) { if ( this . containsPattern ( value ) ) { final var pattern = this . extractPattern ( value ) ; return this . withRegex ( fieldName , pattern ) ; } else { this . query . put ( fieldName , value ) ; } } return this ; }
Add a the restrictions to mark the field with an specific value or a regular
 expression.
Add a the restrictions to mark the field with an specific value or a regular expression .