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