org.eclipse.ocl.examples.common.utils
Class StringUtils

java.lang.Object
  extended by org.eclipse.ocl.examples.common.utils.StringUtils

public class StringUtils
extends java.lang.Object


Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String splice(java.util.List<java.lang.String> strings, java.lang.String separator)
          Return a composite string comprising each element od strings separated by separator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

splice

public static java.lang.String splice(java.util.List<java.lang.String> strings,
                                      java.lang.String separator)
Return a composite string comprising each element od strings separated by separator. A null strings is returned as a null string. An empty strings as an empty string.

Parameters:
strings - strings to be spliced
separator - between elements
Returns:
spliced string