Here you can find the source of isEmpty(List list)
public static boolean isEmpty(List list)
//package com.java2s; import java.util.List; public class Main { public static boolean isEmpty(String string) { return string == null || string.trim().equals(""); }// ww w.j a va 2 s. c om public static boolean isEmpty(List list) { return list == null || list.size() < 1; } }