protected static List < String > splice ( final String toSplice ) { final List < String > toReturn = new ArrayList < String > ( ) ; final StringTokenizer tok = new StringTokenizer ( toSplice , "," , false ) ; while ( tok . hasMoreTokens ( ) ) { toReturn . add ( tok . nextToken ( ) ) ; } return toReturn ; }
Helper method which splices the provided string into a List separating on commas .