Converts the list of plans to a string for display/comparison.
@param plans the plans
@return the plans as a string
973884
public static String asString_ApiPlanBeans(Set<ApiPlanBean> plans) {
        TreeSet<ApiPlanBean> sortedPlans = new TreeSet<>(new Comparator<ApiPlanBean>() {
            @Override
            public int compare(ApiPlanBean o1, ApiPlanBean o2) {
                String p1 = o1.getPlanId() + ":" + o1.getVersion(); //$NON-NLS-1$
                String p2 = o2.getPlanId() + ":" + o2.getVersion(); //$NON-NLS-1$
                return p1.compareTo(p2);
            }
        });
        sortedPlans.addAll(plans);

        StringBuilder builder = new StringBuilder();
        boolean first = true;
        if (plans != null) {
            for (ApiPlanBean plan : sortedPlans) {
                if (!first) {
                    builder.append(", "); //$NON-NLS-1$
                }
                builder.append(plan.getPlanId()).append(":").append(plan.getVersion()); //$NON-NLS-1$
                first = false;
            }
        }
        return builder.toString();
    }
138739
public static String intListAsString(List<Integer> ls) {
    return String.join(", ", ls.stream().map(i -> i.toString()).collect(Collectors.toList()));
  }
54344
public static String convertToString(Collection<? extends Object> parameters) {
        if (parameters == null || parameters.isEmpty())
            return "";

        StringBuilder result = new StringBuilder();
        for (Object param : parameters) {
            if (param instanceof String)
                param = "'" + param + "'";
            if (result.length() != 0)
                result.append(",");
            result.append(param);
        }

        log.debug("restriction list converted to {}", result);

        return result.toString();
    }
378361
public static String[] strListToArray(List<String> list) {
		if (list == null)
			return new String[0];
		return list.toArray(new String[list.size()]);
	}
113575
public Map<String, Object> listStats(ListStat stat) throws IOException {
        return (Map<String, Object>)this.stats(stat);
    }
1177110
public java.lang.String getLayout() {
        return (java.lang.String) getStateHelper().eval(PropertyKeys.layout, "list");

    }
694276
protected List<String> getCellLines(String explanation) {
		int startPos = 0;
		List<String> cellLines = new ArrayList<>();
		for (int commaPos = 0; commaPos > -1;) {
			commaPos = explanation.indexOf(",", startPos);
			if (commaPos >= 0) {
                String cellLine = (explanation.substring(startPos, commaPos).trim());
				explanation = explanation.substring(commaPos + 1);
				if (cellLine.length() > 0) {
					cellLines.add(cellLine);
				}
			} else if (explanation.length() > 0) {
				cellLines.add(explanation.trim());
			}
		}
		return cellLines;
	}
175771
public static Plan retrieve(String plan) throws StripeException {
    return retrieve(plan, (Map<String, Object>) null, (RequestOptions) null);
  }
240664
public List<String> asList() {
        final List<String> result = new ArrayList<>();
        for (Collection<Argument> args : map.values()) {
            for (Argument arg : args) {
                result.add(arg.asCommandLineArgument());
            }
        }
        return result;
    }
1213693
public List<I_CmsFormatterBean> getDisplayFormatters() {

        if (m_displayFormatters == null) {
            List<I_CmsFormatterBean> formatters = new ArrayList<I_CmsFormatterBean>(
                Collections2.filter(m_allFormatters, new IsDisplay()));
            if (formatters.size() > 1) {
                Collections.sort(formatters, new Comparator<I_CmsFormatterBean>() {

                    public int compare(I_CmsFormatterBean o1, I_CmsFormatterBean o2) {

                        return o1.getRank() == o2.getRank() ? 0 : (o1.getRank() < o2.getRank() ? -1 : 1);
                    }
                });
            }
            m_displayFormatters = Collections.unmodifiableList(formatters);
        }
        return m_displayFormatters;
    }
129809
@Override
	protected String renderList( Collection<String> listItems ) {

		StringBuilder sb = new StringBuilder();
		sb.append( "\n<ul>\n" );
		for( String s : listItems ) {
			sb.append( "\t<li>" );
			sb.append( s );
			sb.append( "</li>\n" );
		}

		sb.append( "</ul>\n\n" );
		return sb.toString();
	}
1025709
public static String getString() {
    final StringBuilder buf = new StringBuilder();
    buf.append("Feature List:\n");
    for (Feature f : Feature.values()) {
      buf.append(f).append(" introduced in layout version ")
          .append(f.lv).append(" (").
      append(f.description).append(")\n");
    }
    
    buf.append("\n\nLayoutVersion and supported features:\n");
    for (Feature f : Feature.values()) {
      buf.append(f.lv).append(": ").append(map.get(f.lv))
          .append("\n");
    }
    return buf.toString();
  }
1186167
public static String toNameList(Collection<? extends Item> items) {
        StringBuilder buf = new StringBuilder();
        for (Item item : items) {
            if(buf.length()>0)
                buf.append(", ");
            buf.append(item.getFullName());
        }
        return buf.toString();
    }
216358
public static List<String> buildList(String... args) {
        List<String> newList = new ArrayList<String>();
        Collections.addAll(newList, args);
        return newList;
    }
882682
static public String listToJSONString(List<?> list) {
		if (list == null || list.size() == 0) {
			return "[]";
		}
		StringBuilder sb = new StringBuilder("[");
		for (Object o : list) {
			buildAppendString(sb, o).append(',').append(' ');
		}
		return sb.delete(sb.length() - 2, sb.length()).append(']').toString();
	}
847399
public String list(List<String> messages) {
		List<String> sortedComponents = new ArrayList<String>(messages);
		Collections.sort(sortedComponents);
		String output = "";
		for (String component : sortedComponents) {
			output += "\n" + component;
		}
		return output;
	}
617095
public static LineString of(Stream<Point> points) {
        return of(points.collect(Collectors.toList()));
    }