Here you can find the source of isNotEmpty(Collection> collection)
public static boolean isNotEmpty(Collection<?> collection)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static boolean isNotEmpty(String str) { return !isEmpty(str); }//w w w .j a va 2 s .c o m public static boolean isNotEmpty(Collection<?> collection) { return !isEmpty(collection); } public static boolean isEmpty(String str) { if (null == str || "".equals(str)) { return true; } return false; } public static boolean isEmpty(Collection<?> collection) { if (null == collection || collection.isEmpty()) { return true; } return false; } }