Here you can find the source of isCollectionEmpty(Collection oneCol)
public static Boolean isCollectionEmpty(Collection oneCol)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static Boolean isCollectionEmpty(Collection oneCol) { return (oneCol == null || oneCol.isEmpty() || oneCol.size() < 1); }//from ww w . jav a2 s. c om }