List of utility methods to do Iterable to String
String | toString(Iterable> names) to String Formatter formatter = new Formatter(); boolean first = true; for (Object name : names) { if (first) { formatter.format("'%s'", name); first = false; } else { formatter.format(", '%s'", name); ... |
String | toString(Iterable to String String ret = ""; if (iterable != null) { int count = 0; for (String str : iterable) { if (count == 0) ret = str; else ret += (", " + str); ... |
String | toString(Iterable to String StringBuilder ret = new StringBuilder(); for (Iterator<String> i = strs.iterator(); i.hasNext();) { ret.append(i.next()); if (i.hasNext()) ret.append(","); return ret.toString(); |
String | toString(Iterable to String final StringBuilder stringBuilder = new StringBuilder(); for (final Iterator<T> iterator = iterable.iterator(); iterator.hasNext();) { final T object = iterator.next(); stringBuilder.append(object); if (iterator.hasNext()) { stringBuilder.append(separator); return stringBuilder.toString(); |