Java List Null Empty isEmpty(List list)

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

Description

is Empty

License

Open Source License

Declaration

public static boolean isEmpty(List<? extends Object> list) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;
import java.util.Map;

public class Main {
    /**//  w ww  .j a v a 2 s.  c o  m
     * Return true if this map is null or it's empty.
     * 
     * @param map
     * @return
     */
    public static boolean isEmpty(Map<? extends Object, ? extends Object> map) {
        return map == null || map.isEmpty();
    }

    public static boolean isEmpty(List<? extends Object> list) {
        return list == null || list.isEmpty();
    }
}

Related

  1. isEmpty(final List list)
  2. isEmpty(final List objList)
  3. isEmpty(java.util.List list)
  4. isEmpty(List list)
  5. isEmpty(List values)
  6. isEmpty(List aList)
  7. isEmpty(List collection)
  8. isEmpty(List list, String message)
  9. isEmpty(List obj)