velosurf.util
Class StringLists

java.lang.Object
  extended by velosurf.util.StringLists

public class StringLists
extends java.lang.Object

This static class gathers utilities for lists of strings.

Author:
Claude Brisson

Constructor Summary
StringLists()
           
 
Method Summary
static java.util.List<java.lang.String> getPopulatedArrayList(int size)
          builds an array list initially filled with size dummy objects.
static java.lang.String join(java.util.Collection stringList, java.lang.String joinString)
          joins strings using a separator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringLists

public StringLists()
Method Detail

getPopulatedArrayList

public static java.util.List<java.lang.String> getPopulatedArrayList(int size)
builds an array list initially filled with size dummy objects.

Parameters:
size - size of the list
Returns:
the new ArrayList

join

public static java.lang.String join(java.util.Collection stringList,
                                    java.lang.String joinString)
joins strings using a separator.

Parameters:
stringList - strings to join
joinString - separator to include between strings
Returns:
the result of the join


~ooOoo~