Java List Null Empty isNotEmpty(List value)

Here you can find the source of isNotEmpty(List value)

Description

is Not Empty

License

Open Source License

Declaration

public static boolean isNotEmpty(List<?> value) 

Method Source Code


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

import java.util.List;

public class Main {
    public static boolean isNotEmpty(String value) {
        return !isEmpty(value);
    }//from  w  ww .  jav a2s .com

    public static boolean isNotEmpty(List<?> value) {
        return !isEmpty(value);
    }

    public static boolean isEmpty(String value) {
        if (value == null || value.length() == 0) {
            return true;
        }
        return false;
    }

    public static boolean isEmpty(List<?> value) {
        if (value == null || value.size() == 0) {
            return true;
        }
        return false;
    }
}

Related

  1. isNotEmpty(List list)
  2. isNotEmpty(List values)
  3. isNotEmpty(List input)
  4. isNotEmpty(List input)
  5. isNotEmpty(List list)
  6. isNotEmpty(List list)
  7. isNotEmpty(List list)
  8. isNotEmpty(List list)
  9. isNotEmpty(List objList)