Here you can find the source of isEmptyCollection(Collection> col)
public static final boolean isEmptyCollection(Collection<?> col)
//package com.java2s; import java.util.Collection; public class Main { public static final boolean isEmptyCollection(Collection<?> col) { if (col == null || col.isEmpty()) { return true; }/*w ww . j a v a2s. c om*/ return false; } }