org.mule.util
Class CollectionUtils

java.lang.Object
  extended byorg.apache.commons.collections.CollectionUtils
      extended byorg.mule.util.CollectionUtils

public class CollectionUtils
extends CollectionUtils

See Also:
Serialized Form

Constructor Summary
CollectionUtils()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtils

public CollectionUtils()
Method Detail

toString

public static String toString(Collection c,
                              boolean newline)
Creates a String representation of the given Collection, with optional newlines between elements. Class objects are represented by their full names.

Parameters:
c - the Collection to format
newline - indicates whether elements are to be split across lines
Returns:
the formatted String

toString

public static String toString(Collection c,
                              int maxElements)
Calls toString(Collection, int, boolean) with false for newline.


toString

public static String toString(Collection c,
                              int maxElements,
                              boolean newline)
Creates a String representation of the given Collection, with optional newlines between elements. Class objects are represented by their full names. Considers at most maxElements values; overflow is indicated by an appended "[..]" ellipsis.

Parameters:
c - the Collection to format
maxElements - the maximum number of elements to take into account
newline - indicates whether elements are to be split across lines
Returns:
the formatted String


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.