Here you can find the source of isEmptyList(List list)
public static boolean isEmptyList(List list)
//package com.java2s; import java.util.List; public class Main { public static boolean isEmptyList(List list) { if (list != null && list.size() > 0) { return false; } else {//from w ww .java2s. com return true; } } }