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