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