public class ProcessingUtil extends Object
| Constructor and Description |
|---|
ProcessingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.joda.time.DateTime |
formatDate(String date,
String pattern)
Formats a dateto a joda datetime according to pattern provided.
|
static boolean |
nullOrEmpty(Collection<?> collection)
Returns true if a collection has 0 rows or is null
|
static boolean |
nullOrEmpty(String str)
Returns true if a string is empty or null
|
public static boolean nullOrEmpty(String str)
str - the string, may be nullpublic static boolean nullOrEmpty(Collection<?> collection)
collection - the collection, may be nullpublic static org.joda.time.DateTime formatDate(String date, String pattern)
date - a datepattern - e.g. MM/dd/yyyydateCopyright © 2019. All rights reserved.