Java List Null Empty isNullOrEmpty(List list)

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

Description

is Null Or Empty

License

Apache License

Declaration

public static boolean isNullOrEmpty(List list) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.List;
import java.util.Set;

public class Main {
    public static boolean isNullOrEmpty(String s) {
        return s == null || s.trim().isEmpty();
    }//from w  ww . j  a  v a 2 s .  c o m

    public static boolean isNullOrEmpty(List list) {
        return list == null || list.isEmpty();
    }

    public static boolean isNullOrEmpty(Set set) {
        return set == null || set.isEmpty();
    }
}

Related

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