Here you can find the source of isNotEmpty(Collection> coll)
public static boolean isNotEmpty(Collection<?> coll)
//package com.java2s; import java.util.Collection; import java.util.Map; public class Main { public static boolean isNotEmpty(Collection<?> coll) { return !isEmpty(coll); }//ww w . j a va 2s . c om public static boolean isNotEmpty(Map<?, ?> map) { return !isEmpty(map); } public static boolean isEmpty(Collection<?> coll) { return coll == null || coll.size() <= 0; } public static boolean isEmpty(Map<?, ?> map) { return map == null || map.size() <= 0; } }