Here you can find the source of isNotEmpty(List list)
@SuppressWarnings("rawtypes") public static boolean isNotEmpty(List list)
//package com.java2s; import java.util.List; import java.util.Map; public class Main { @SuppressWarnings("rawtypes") public static boolean isNotEmpty(List list) { if (list == null || list.size() < 1) { return false; }//from w ww . j av a 2 s . c o m return true; } @SuppressWarnings("rawtypes") public static boolean isNotEmpty(Map map) { if (map != null && map.size() > 0) { return true; } return false; } }