be.erwinsmout
Class MyString

java.lang.Object
  extended by be.erwinsmout.MyString

public class MyString
extends java.lang.Object

Author:
Erwin

Constructor Summary
MyString()
           
 
Method Summary
static java.lang.String asCSV(java.util.Set<java.lang.String> set)
          Returns a String containing all the Strings in set, in comma-separated syntax
static java.util.LinkedList<java.lang.String> getNamesInEntryOrder(java.lang.String in, char c)
          Gets a LinkedList of the non-empty strings which appear in the given input string between any occurrences of the given separator character
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyString

public MyString()
Method Detail

asCSV

public static java.lang.String asCSV(java.util.Set<java.lang.String> set)
Returns a String containing all the Strings in set, in comma-separated syntax

Parameters:
set - The set of Strings to be concatenated in comma-separated form
Returns:
a String containing all the Strings in set, in comma-separated syntax

getNamesInEntryOrder

public static java.util.LinkedList<java.lang.String> getNamesInEntryOrder(java.lang.String in,
                                                                          char c)
Gets a LinkedList of the non-empty strings which appear in the given input string between any occurrences of the given separator character

Parameters:
in - A string to be split, of which the individual nonempty portions are to be returned as a list
c - The separator character
Returns:
a LinkedList of the non-empty strings which appear in the given input string between any occurrences of the given separator character