vertx/src/main/java/eu/internetofus/common/vertx/QueryBuilder.java
/**
   * Return the query to match an element value.
   *
   * @param value to match an element.
   *
   * @return the matcher query.
   */
Return the query to match an element value.
@param value to match an element.

@return the matcher query.
Return the query to match an element value . @param value to match an element . @return the matcher query .
protected JsonObject elementMatch(final String value) {
    final var elementMatch = new JsonObject();
    if (this.containsPattern(value)) {
      final var pattern = this.extractPattern(value);
      elementMatch.put("$regex", pattern).put("$options", "i");
    } else {
      elementMatch.put("$eq", value);
    }
    return elementMatch;
  }
protected JsonObject elementMatch ( final String value ) { final var elementMatch = new JsonObject ( ) ; if ( this . containsPattern ( value ) ) { final var pattern = this . extractPattern ( value ) ; elementMatch . put ( "$regex" , pattern ) . put ( "$options" , "i" ) ; } else { elementMatch . put ( "$eq" , value ) ; } return elementMatch ; }
Return the query to match an element value.
Return the query to match an element value .