Here you can find the source of isNotEmpty(Collection collection)
public static boolean isNotEmpty(Collection collection)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static boolean isNotEmpty(Collection collection) { return !isEmpty(collection); }/*from ww w.ja v a2 s. co m*/ public static boolean isEmpty(Collection collection) { boolean ret = true; if (collection != null && collection.size() > 0) { ret = false; } return ret; } }