Here you can find the source of isNotNullAndNotEmpty(List> list)
public static boolean isNotNullAndNotEmpty(List<?> list)
//package com.java2s; //License from project: Apache License import java.util.List; import java.util.Map; public class Main { public static boolean isNotNullAndNotEmpty(Map<?, ?> map) { if (map == null) { return false; }/*from ww w . jav a2s . co m*/ return !map.isEmpty(); } public static boolean isNotNullAndNotEmpty(List<?> list) { if (list == null) { return false; } return !list.isEmpty(); } }