| java.lang.Object org.obe.worklist.WorklistUtils
WorklistUtils | public class WorklistUtils (Code) | | author: Adrian Price |
Method Summary | |
public static String | convert(Object value) Converts an object to a string. | public static List | iteratorToList(Iterator it) | public static String | splice(String s1, String s2, String s3) Inserts a string immediately before the last occurrence of one string
within another.
For example: splice("abc/xyz", "/", "-def") returns
"abc-def/xyz" .
Parameters: s1 - The source string. Parameters: s2 - The string that marks the insertion point. Parameters: s3 - The string to insert before s2 . |
convert | public static String convert(Object value)(Code) | | Converts an object to a string. Object arrays are converted to
comma-separated lists, and nulls are converted to a single space.
Parameters: value - The object to convert. The string representation of the object's value. |
splice | public static String splice(String s1, String s2, String s3)(Code) | | Inserts a string immediately before the last occurrence of one string
within another.
For example: splice("abc/xyz", "/", "-def") returns
"abc-def/xyz" .
Parameters: s1 - The source string. Parameters: s2 - The string that marks the insertion point. Parameters: s3 - The string to insert before s2 . The source string, with s3 inserted before the lastoccurrence of s2 in s1 . |
|
|