Java List Null Empty isNotNullAndNotEmpty(List list)

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

Description

is Not Null And Not Empty

License

Apache License

Declaration

public static boolean isNotNullAndNotEmpty(List<?> list) 

Method Source Code

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

import java.util.List;
import java.util.Map;

public class Main {
    public static boolean isNotNullAndNotEmpty(Map<?, ?> map) {
        if (map == null) {
            return false;
        }/*from ww  w  .  jav a2s  .  co m*/
        return !map.isEmpty();
    }

    public static boolean isNotNullAndNotEmpty(List<?> list) {
        if (list == null) {
            return false;
        }
        return !list.isEmpty();
    }
}

Related

  1. isNotEmpty(List list)
  2. isNotEmpty(List list)
  3. isNotEmpty(List list)
  4. isNotEmpty(List objList)
  5. isNotNullAndEmpty(List list)
  6. isNull(List list)
  7. isNullish(java.util.List value)
  8. isNullList(List l)
  9. isNullOrEmpty(List list)