List of utility methods to do List Join
String | join(final List Joins items of a text list, separating items by comma. if (list == null) { return null; } else if (list.size() == 0) { return ""; } else if (list.size() == 1) { return list.get(0); final StringBuilder builder = new StringBuilder(); ... |
String | join(final List join final StringBuilder text = new StringBuilder(256); final int size = list.size(); for (int k = 0; k < size; k++) { text.append(list.get(k)); if (k == size - 1) { break; text.append(sepa); ... |
String | join(final List join StringBuilder builder = new StringBuilder(); for (String element : path) { if (builder.length() != 0) { builder.append(delimiter); builder.append(element); return builder.toString(); ... |
String | join(final List Joins a list of strings to one string assert strings != null; if (strings.isEmpty()) { return ""; boolean first = true; final StringBuilder builder = new StringBuilder(); for (final String string : strings) { if (!first) { ... |
String | join(final List join if (strings == null) { return ""; return join(strings.toArray(new String[strings.size()]), separator); |
String | join(final List Joins a list of substrings with a join between each element final StringBuilder sb = new StringBuilder(); for (final String substring : substrings) { if (sb.length() != 0) { sb.append(join); sb.append(substring); return sb.toString(); ... |
String | join(final String delimiter, List> values) Join values to string final StringBuilder sb = new StringBuilder(); for (final Object v : values) { if (sb.length() > 0) { sb.append(delimiter); sb.append(v); return sb.toString(); ... |
String | join(final String separator, final List join final Iterator<String> it = list.iterator(); String result = ""; while (it.hasNext()) { result += it.next() + (it.hasNext() ? separator : ""); return result; |
String | join(final String with, final List join final StringBuffer buf = new StringBuffer(); for (final String s : array) { if (buf.length() > 0) { buf.append(with); buf.append(s); return buf.toString(); ... |
String | join(Iterable join assert list != null; Iterator<String> iterator = list.iterator(); assert iterator.hasNext(); StringBuilder buf = new StringBuilder(); buf.append(iterator.next()); while (iterator.hasNext()) { buf.append(", "); buf.append(iterator.next()); ... |