List of utility methods to do Iterable Join
String | join(Iterable join if (iterable == null) return null; Iterator<E> iterator = iterable.iterator(); StringBuffer buf = new StringBuffer(256); while (iterator.hasNext()) { E elem = iterator.next(); if (elem != null) buf.append(elem); ... |
String | join(Iterable join return join(array, ","); |
String | join(Iterable join final StringBuilder builder = new StringBuilder(); final Iterator<String> it = items.iterator(); while (it.hasNext()) { builder.append(it.next()); if (it.hasNext()) { builder.append(separator); return builder.toString(); |
String | join(Iterable Joins content of any Iterable if (iterable == null) return ""; Iterator<String> i = iterable.iterator(); StringBuilder builder = new StringBuilder(); if (i.hasNext()) builder.append(i.next()); while (i.hasNext()) { builder.append(delimiter).append(i.next()); ... |
String | join(Iterable Just strings with a delimiter. if (s == null) return ""; Iterator<String> iter = s.iterator(); StringBuilder builder = new StringBuilder(iter.next()); while (iter.hasNext()) { builder.append(delimiter).append(iter.next()); return builder.toString(); ... |
String | join(Iterable Joins array of strings to string if (s == null) return ""; Iterator<String> iter = s.iterator(); StringBuilder builder = new StringBuilder(iter.next()); while (iter.hasNext()) { builder.append(delimiter).append(iter.next()); return builder.toString(); ... |
String | join(Iterable join StringBuilder buffer = new StringBuilder(64); Iterator iter = s.iterator(); if (iter.hasNext()) { buffer.append(nvl(iter.next(), "")); while (iter.hasNext()) { buffer.append(delimiter); buffer.append(nvl(iter.next(), "")); return buffer.toString(); |
String | join(Iterable join final StringBuilder sb = new StringBuilder(); final Iterator<String> i = source.iterator(); while (i.hasNext()) { String token = i.next(); if (token != null) { sb.append(token); if (i.hasNext()) { ... |
String | join(Iterable Join an Iterable of String into one string with a separator Iterator<String> iterator = null; if (source == null) { return ""; iterator = source.iterator(); if (!(iterator.hasNext())) { return ""; StringBuilder builder = new StringBuilder(iterator.next()); while (iterator.hasNext()) { builder.append(separator).append(iterator.next()); return builder.toString(); |
String | join(Iterable Concatenates strings, using whitespaces as separator. return join(" ", strings); |