ArraysUtil (fawkeZ - Developer's Documentation)

org.jcoderz.commons.util
Class ArraysUtil

  extended by org.jcoderz.commons.util.ArraysUtil

public final class ArraysUtil
extends

This class contains a static factory that allows arrays to be viewed as lists.

Author:
Michael Griffel

Method Summary
static  toString([] array)
          Returns a string representation of the contents of the specified array.
 
Methods inherited from class java.lang.
, , , , , , , , , ,
 

Method Detail

toString

public static  toString([] array)
Returns a string representation of the contents of the specified array. If the array contains other arrays as elements, they are converted to strings by the method inherited from Object, which describes their identities rather than their contents.

The value returned by this method is equal to the value that would be returned by Arrays.asList(a).toString(), unless array is null, in which case "null" is returned.

This method is useful to dump the content of the array in a tracing method, e.g.:

 logger.entering(CLASSNAME, "foo(Object[])", ArraysUtil.toString(array));
 

Parameters:
array - The array whose string representation to return.
Returns:
A string representation of array.


Copyright 2007 The jCoderZ Project.