Here you can find the source of isCollectionNotEmpty(Collection
public static <T> boolean isCollectionNotEmpty(Collection<T> collection)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static <T> boolean isCollectionNotEmpty(Collection<T> collection) { return !isCollectionEmpty(collection); }/* w w w. j ava 2 s.c o m*/ public static <T> boolean isCollectionEmpty(Collection<T> collection) { return collection == null || collection.isEmpty(); } }