vertx/src/main/java/eu/internetofus/common/vertx/ServiceRequests.java
/**
   * Extract form a query parameter the array values defined in it.
   *
   * @param value to extract the values.
   *
   * @return the string list defined on the value. If the value is {@code null} or
   *         empty it return a {@code null} value.
   */
Extract form a query parameter the array values defined in it.
@param value to extract the values.

@return the string list defined on the value. If the value is  null or
empty it return a  null value.
Extract form a query parameter the array values defined in it . @param value to extract the values . @return the string list defined on the value . If the value is null or empty it return a null value .
static List<String> extractQueryArray(String value) {
    if (value == null) {
      return null;
    } else {
      List<String> values = new ArrayList<>();
      var split = value.split(",");
      var max = split.length;
      for (var i = 0; i < max; i++) {
        var trimmed = split[i].trim();
        if (!trimmed.isEmpty()) {
          values.add(trimmed);
        }
      }
      if (values.isEmpty()) {
        return null;
      } else {
        return values;
      }
    }
  }
static List < String > extractQueryArray ( String value ) { if ( value == null ) { return null ; } else { List < String > values = new ArrayList < > ( ) ; var split = value . split ( "," ) ; var max = split . length ; for ( var i = 0 ; i < max ; i ++ ) { var trimmed = split [ i ] . trim ( ) ; if ( ! trimmed . isEmpty ( ) ) { values . add ( trimmed ) ; } } if ( values . isEmpty ( ) ) { return null ; } else { return values ; } } }
Extract form a query parameter the array values defined in it.
Extract form a query parameter the array values defined in it .