Here you can find the source of isNotEmpty(Collection> collection)
public static boolean isNotEmpty(Collection<?> collection)
//package com.java2s; import java.util.*; public class Main { public static boolean isNotEmpty(Collection<?> collection) { return (collection != null && !collection.isEmpty()); }// ww w .j av a 2s .co m public static boolean isNotEmpty(Set<?> set) { return (set != null && !set.isEmpty()); } public static boolean isNotEmpty(Map<?, ?> map) { return (map != null && !map.isEmpty()); } public static boolean isEmpty(Collection<?> collection) { return (collection == null || collection.isEmpty()); } public static boolean isEmpty(Map<?, ?> map) { return (map == null || map.isEmpty()); } public static boolean isEmpty(Set<?> set) { return (set == null || set.isEmpty()); } }