Here you can find the source of isNonEmpty(Collection> coll)
Parameter | Description |
---|---|
coll | a parameter |
public static boolean isNonEmpty(Collection<?> coll)
//package com.java2s; //it under the terms of the GNU Affero General Public License as published by import java.util.Collection; public class Main { /**//w w w . j a v a2 s .c o m * @param coll * @return !isNullOrEmpty(coll); */ public static boolean isNonEmpty(Collection<?> coll) { return !isNullOrEmpty(coll); } /** * @param coll * @return (coll == null) || coll.isEmpty(); */ public static boolean isNullOrEmpty(Collection<?> coll) { return (coll == null) || coll.isEmpty(); } }