Java List Null Empty isEmpty(List list)

Here you can find the source of isEmpty(List list)

Description

is Empty

License

Open Source License

Parameter

Parameter Description
list a parameter

Return

boolean

Declaration

public static <T> boolean isEmpty(List<T> list) 

Method Source Code

//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
}

Related

  1. isEmpty(List collection)
  2. isEmpty(List list, String message)
  3. isEmpty(List obj)
  4. isEmpty(List list)
  5. isEmpty(List aList)
  6. isEmpty(List objList)
  7. isEmpty(List sourceList)
  8. isEmptyList(List inputList)
  9. isEmptyList(List list)