package net.sf.kerner.utils;

public class StringUtils {
	
	private StringUtils(){}
	
	/**
	 * 
	 * Check if a string is null, empty or contains only whitespaces.
	 *
	 * @param string String to check
	 * @return true, if this string is null, empty or contains only whitespaces; false otherwise
	 */
	public static boolean emptyString(String string){
		if(string == null)
			return true;
		if(string.length() < 1)
			return true;
		if(string.matches("\\s"))
			return true;
		return false;
	}

}

@@ -23,16 +23,97 @@
 utils;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.List;%0A%0A
 public c
@@ -566,12 +566,209 @@
 alse;%0A%09%7D
+%0A%09%0A%09public static List%3CString%3E getStringList(Collection%3C?%3E list)%7B%0A%09%09final List%3CString%3E result = new ArrayList%3CString%3E();%0A%09%09for(Object o : list)%7B%0A%09%09%09result.add(o.toString());%0A%09%09%7D%0A%09%09return result;%0A%09%7D
 %0A%0A%7D%0A

Add StringUtils#getStringList().