Here you can find the source of isEmpty(Collection> coll)
public static boolean isEmpty(Collection<?> coll)
//package com.java2s; import java.util.Collection; public class Main { public static boolean isEmpty(Collection<?> coll) { return (coll == null || coll.isEmpty()); }//from ww w .j a v a2s .com }