Here you can find the source of isEmpty(List
Parameter | Description |
---|---|
list | a parameter |
public static <T> boolean isEmpty(List<T> list)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static <T> boolean isEmpty(List<T> list) { return list == null || list.size() == 0; }//from ww w .j a v a2s . c om }