Here you can find the source of isNotEmpty(List> value)
public static boolean isNotEmpty(List<?> value)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static boolean isNotEmpty(String value) { return !isEmpty(value); }//from w ww . jav a2s .com public static boolean isNotEmpty(List<?> value) { return !isEmpty(value); } public static boolean isEmpty(String value) { if (value == null || value.length() == 0) { return true; } return false; } public static boolean isEmpty(List<?> value) { if (value == null || value.size() == 0) { return true; } return false; } }