Java List Null Empty isObjectListEmpty(List list)

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

Description

This method returns true if the input list is null or list is empty.

License

Open Source License

Parameter

Parameter Description
list a parameter

Return

boolean.

Declaration

public static boolean isObjectListEmpty(List list) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    /**/*w w w  .ja  v  a 2 s.  co m*/
     * 
     * This method returns true if the input list is null or list is empty.
     * 
     * @param list
     * @return boolean.
     */
    public static boolean isObjectListEmpty(List list) {
        return (list == null || list.isEmpty());
    }
}

Related

  1. isNullOrEmpty(List l)
  2. isNullOrEmptyAwareEqual(final List targetOne, final List targetTwo)
  3. isNullOrEmptyList(final List list)
  4. isNullOrEmptyList(List list)
  5. isNullOrEmptyList(String message, List list)
  6. listToItemOrNull(List list)
  7. listWithoutNull(A... elements)
  8. listWithoutNull(final List list)
  9. maskNull(List pTypes)