List of utility methods to do Collection to String Convert
String | toString(final Collection> collection) Builds a string for a collection of objects. if (collection == null) return String.valueOf(collection); final StringBuilder result = new StringBuilder().append("{"); String elementSeparator = ""; for (final Object element : collection) { result.append(elementSeparator); result.append(String.valueOf(element)); elementSeparator = ","; ... |
String | toString(final Collection to String final StringBuilder builder = new StringBuilder(); int i = 0; for (T item : collection) { final String itemString = String.valueOf(item); if (i > 0) { builder.append(includeSpace ? token + " " : token); builder.append(itemString); ... |
String | toString(final Collection to String final StringBuilder builder = new StringBuilder(); int i = 0; for (T item : collection) { final String itemString = String.valueOf(item); if (i > 0) { builder.append(includeSpace ? token + " " : token); builder.append(itemString); ... |
String | toString(Collection to String if (arrays == null || arrays.isEmpty()) { return "[]"; StringBuilder buffer = new StringBuilder(); buffer.append('['); Iterator<int[]> it = arrays.iterator(); while (it.hasNext()) { buffer.append(Arrays.toString(it.next())); ... |