| |
|
| java.lang.Object com.opensymphony.oscache.util.StringUtil
StringUtil | public class StringUtil (Code) | | Provides common utility methods for handling strings.
author: Chris Miller |
Method Summary | |
final public static boolean | hasLength(String s) | final public static boolean | isEmpty(String s) | final public static List | split(String str, char delimiter) Splits a string into substrings based on the supplied delimiter
character. |
hasLength | final public static boolean hasLength(String s)(Code) | | Parameters: s - the string to be checked true if the string parameter contains at least one element |
isEmpty | final public static boolean isEmpty(String s)(Code) | | Parameters: s - the string to be checked true if the string parameter is null or doesn't contain any element since: 2.4 |
split | final public static List split(String str, char delimiter)(Code) | | Splits a string into substrings based on the supplied delimiter
character. Each extracted substring will be trimmed of leading
and trailing whitespace.
Parameters: str - The string to split Parameters: delimiter - The character that delimits the string A string array containing the resultant substrings |
|
|
|