Here you can find the source of isEmpty(Collection> list)
public static boolean isEmpty(Collection<?> list)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static boolean isEmpty(Collection<?> list) { return list == null || list.isEmpty(); }//w w w. j a va2 s . c om }