public class CollectionUtils extends Object
| Constructor and Description |
|---|
CollectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
toString(Collection c,
boolean newline)
Creates a String representation of the given Collection, with optional newlines between elements.
|
static String |
toString(Collection c,
int maxElements)
Calls
toString(Collection, int, boolean) with false for newline. |
static String |
toString(Collection c,
int maxElements,
boolean newline)
Creates a String representation of the given Collection, with optional newlines between elements.
|
public static String toString(Collection c, boolean newline)
c - the Collection to formatnewline - indicates whether elements are to be split across linespublic static String toString(Collection c, int maxElements)
toString(Collection, int, boolean) with false for newline.public static String toString(Collection c, int maxElements, boolean newline)
maxElements values; overflow is indicated by an appended
"[..]" ellipsis.c - the Collection to formatmaxElements - the maximum number of elements to take into accountnewline - indicates whether elements are to be split across linesCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.