Java List Null Empty isNullOrEmpty(List list)

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

Description

is Null Or Empty

License

Open Source License

Declaration

public static boolean isNullOrEmpty(List list) 

Method Source Code


//package com.java2s;

import java.util.List;

public class Main {
    public static boolean isNullOrEmpty(List list) {
        if (list == null || list.size() == 0) {
            return true;
        }//from w  ww.ja  v a  2s .c om
        return false;
    }
}

Related

  1. isNotNullAndEmpty(List list)
  2. isNotNullAndNotEmpty(List list)
  3. isNull(List list)
  4. isNullish(java.util.List value)
  5. isNullList(List l)
  6. isNullOrEmpty(List list)
  7. isNullOrEmpty(List l)
  8. isNullOrEmptyAwareEqual(final List targetOne, final List targetTwo)
  9. isNullOrEmptyList(final List list)