mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
19.28.2007 d2a54204a054a9584bc1af6c5a1285e576d46bca
opendj-sdk/opends/src/server/org/opends/server/util/StaticUtils.java
@@ -3256,7 +3256,26 @@
    return stringArray;
  }
  /**
   * Creates a string representation of the elements in the
   * <code>list</code> separated by <code>separator</code>.
   *
   * @param list the list to print
   * @param separator to use between elements
   *
   * @return String representing the list
   */
  static public String listToString(List<?> list, String separator)
  {
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < list.size(); i++) {
      sb.append(list.get(i));
      if (i < list.size() - 1) {
        sb.append(separator);
      }
    }
    return sb.toString();
  }
  /**
   * Retrieves an array list containing the contents of the provided array.