List of utility methods to do List to String
String | listToString(List> collection) Formats a collection of Jatalog entities, like Expr s and Rule s StringBuilder sb = new StringBuilder("["); for (Object o : collection) sb.append(o.toString()).append(". "); sb.append("]"); return sb.toString(); |
String | listToString(List> items) Return a string with the listed items separated by ", " return listToString(items, ", "); |
String | listToString(List> l, String delim) list To String StringBuilder s = new StringBuilder(); if (l.size() == 0) { return ""; for (Object o : l) { s.append(o).append(delim); s.delete(s.length() - delim.length(), s.length()); ... |
String | listToString(List> l, String sep) list To String return iterableToString(l, sep);
|
String | listToString(List> list) list To String StringBuilder sb = new StringBuilder(); for (int i = 0; i < list.size(); i++) { sb.append(list.get(i) + ","); if (sb.toString().endsWith(",")) return sb.substring(0, sb.length() - 1); return sb.toString(); |
String | listToString(List> list) list To String return collectionToString("", list); |
String | listToString(List> list, String separator, String prefix, String suffix) Creates a string consisting of the string representation of the elements in the list separated by separator .
StringBuilder sb = new StringBuilder(); for (int i = 0; i < list.size(); i++) { if (prefix != null) { sb.append(prefix); sb.append(list.get(i)); if (suffix != null) { sb.append(suffix); ... |
String | listToString(List> list, String seperator) list To String return listToString(list, "", seperator, ""); |
String | listToString(List list To String return arrayToString(list.toArray());
|
String | listToString(List list To String String str = ""; if ((list != null) && (list.size() > 0)) { for (Iterator i$ = list.iterator(); i$.hasNext();) { int id = ((Integer) i$.next()).intValue(); str = str + id + ","; if ((!("".equals(str))) && (str.length() > 0)) str = str.substring(0, str.length() - 1); ... |