Java List Null Empty isNotEmpty(final List aList)

Here you can find the source of isNotEmpty(final List aList)

Description

is Not Empty

License

Apache License

Declaration

public static boolean isNotEmpty(final List<?> aList) 

Method Source Code


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

import java.util.List;

public class Main {

    public static boolean isNotEmpty(final List<?> aList) {
        if (null != aList) {
            if (!aList.isEmpty()) {
                return true;
            }//w w w.  j  a va 2  s  .c  om
        }
        return false;
    }

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

Related

  1. isListEmpty(final List list)
  2. isListEmpty(List oneList)
  3. isListEmpty(List list)
  4. isListNullOrEmpty(List lst)
  5. isNonEmptyArray(List value)
  6. isNotEmpty(List list)
  7. isNotEmpty(List list)
  8. isNotEmpty(List values)
  9. isNotEmpty(List input)