Wednesday, September 1, 2010

Simple method for checking the valid collection

public static boolean isValidCollection(Collection collection) {
if (collection != null && collection.size() > 0)
return true;

return false;
}

No comments:

Post a Comment