railo.runtime.util
Class ListUtil

java.lang.Object
  extended by railo.runtime.util.ListUtil

public final class ListUtil
extends Object

class to operate some String List Operations and some list Operations


Constructor Summary
ListUtil()
           
 
Method Summary
static List stringToList(String str, char delimeter)
          creates a List from a String "List"
static List stringToListRemoveEmpty(String str, char delimeter)
          creates a List from a String "List", remove all empty values
static List stringToListTrim(String str, char delimeter)
          creates a List from a String "List", trims empty values at start and end
static String[] toStringArray(List list)
          cast all Elememts of a list to a String array, make simple cast of the object by toString method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUtil

public ListUtil()
Method Detail

stringToList

public static List stringToList(String str,
                                char delimeter)
creates a List from a String "List"

Parameters:
str - String to creates List from
delimeter - delimeter to split string
Returns:
List

stringToListTrim

public static List stringToListTrim(String str,
                                    char delimeter)
creates a List from a String "List", trims empty values at start and end

Parameters:
str - String to creates List from
delimeter - delimeter to split string
Returns:
List

stringToListRemoveEmpty

public static List stringToListRemoveEmpty(String str,
                                           char delimeter)
creates a List from a String "List", remove all empty values

Parameters:
str - String to creates List from
delimeter - delimeter to split string
Returns:
List

toStringArray

public static String[] toStringArray(List list)
cast all Elememts of a list to a String array, make simple cast of the object by toString method

Parameters:
list - List to cast to a String Array
Returns:
String array from List


Copyright © 2012 Railo