vertx/src/main/java/eu/internetofus/common/vertx/ServiceRequests.java
/**
   * Convert an array of values to a string list. This is useful to convert a
   * array query parameter.
   *
   * @param array to convert.
   *
   * @return the string list defined on the array. If the array is {@code null} or
   *         empty it return a{@code null} value.
   */
Convert an array of values to a string list. This is useful to convert a
array query parameter.

@param array to convert.

@return the string list defined on the array. If the array is  null or
empty it return a null value.
Convert an array of values to a string list . This is useful to convert a array query parameter . @param array to convert . @return the string list defined on the array . If the array is null or empty it return a null value .
static List<String> toListString(final JsonArray array) {
    if (array == null) {
      return null;
    } else {
      final var max = array.size();
      if (max == 0) {
        return null;
      } else {
        final List<String> values = new ArrayList<>();
        for (var i = 0; i < max; i++) {
          values.add(array.getString(i));
        }
        return values;
      }
    }
  }
static List < String > toListString ( final JsonArray array ) { if ( array == null ) { return null ; } else { final var max = array . size ( ) ; if ( max == 0 ) { return null ; } else { final List < String > values = new ArrayList < > ( ) ; for ( var i = 0 ; i < max ; i ++ ) { values . add ( array . getString ( i ) ) ; } return values ; } } }
Convert an array of values to a string list.
Convert an array of values to a string list .