Here you can find the source of isEmpty(Collection> theCollection)
public static boolean isEmpty(Collection<?> theCollection)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static boolean isEmpty(Collection<?> theCollection) { return theCollection == null || theCollection.isEmpty(); }/*w ww . ja va 2 s . c om*/ }