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 list) 

Method Source Code


//package com.java2s;
import java.util.List;

public class Main {
    public static boolean isEmpty(String string) {
        return string == null || string.trim().equals("");
    }// ww  w.j a  va 2  s. c  om

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

Related

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