NextApp Echo
App Container 1.0.5

nextapp.echoservlet.util
Class Delimiter

java.lang.Object
  extended bynextapp.echoservlet.util.Delimiter

public class Delimiter
extends java.lang.Object

Converts arrays to Strings, adding a specified delimiter between elements.


Constructor Summary
private Delimiter()
          Non-instantiable class.
 
Method Summary
static java.lang.String toString(java.util.Collection collection, java.lang.String delimiter)
          Returns the contents of an Collection as a String, adding the specified delimiter between elements.
static java.lang.String toString(java.lang.Object[] array, java.lang.String delimiter)
          Returns the contents of an array as a String, adding the specified delimiter between elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delimiter

private Delimiter()
Non-instantiable class.

Method Detail

toString

public static java.lang.String toString(java.lang.Object[] array,
                                        java.lang.String delimiter)
Returns the contents of an array as a String, adding the specified delimiter between elements.

Parameters:
array - The array to be converted.
delimiter - The delimiter to be added between array elements.
Returns:
A String containing the elements of the array delimited by the specified delimiter.

toString

public static java.lang.String toString(java.util.Collection collection,
                                        java.lang.String delimiter)
Returns the contents of an Collection as a String, adding the specified delimiter between elements.

Parameters:
collection - The collection to be converted.
delimiter - The delimiter to be added between objects in the Collection.
Returns:
A String containing the elements of the Collection delimited by the specified delimiter.

NextApp Echo
App Container 1.0.5