Here you can find the source of isNotEmpty(Collection> collection)
public static boolean isNotEmpty(Collection<?> collection)
//package com.java2s; import java.util.Collection; public class Main { /**/*from www . j av a2s .com*/ * Checks if provided {@link Collection} is null and not empty. */ public static boolean isNotEmpty(Collection<?> collection) { return (collection != null && collection.size() > 0); } }