Here you can find the source of isNotEmpty(Collection collection)
@SuppressWarnings("rawtypes") public static boolean isNotEmpty(Collection collection) throws Exception
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { @SuppressWarnings("rawtypes") public static boolean isNotEmpty(Collection collection) throws Exception { if (null != collection && !collection.isEmpty()) { return true; }//from w w w . j a v a 2 s .com return false; } }