JIVE Platform
Release 0.3.1

edu.bsu.cs.jive.util
Class StringSeparator

java.lang.Object
  extended by edu.bsu.cs.jive.util.StringSeparator

public class StringSeparator
extends Object

Processes collections and provides stringified versions of them.


Constructor Summary
StringSeparator()
           
 
Method Summary
static String toString(Iterable<?> i)
          Return a string version of the collection using comma-separation.
static String toString(Iterable<?> i, String separator)
          Return a string version of the list the specified separator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSeparator

public StringSeparator()
Method Detail

toString

public static String toString(Iterable<?> i)
Return a string version of the collection using comma-separation.

Parameters:
i - an iterable collection
Returns:
string version of the list

toString

public static String toString(Iterable<?> i,
                              String separator)
Return a string version of the list the specified separator.

Parameters:
i - an iterable collection
separator -
Returns:
string version of the list

JIVE Platform
Release 0.3.1