Java List Null Empty isEmpty(final List aList)

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

Description

is Empty

License

Apache License

Declaration

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

Method Source Code


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

import java.util.List;

public class Main {

    public static boolean isEmpty(final List<?> aList) {
        return !(isNotEmpty(aList));
    }//from  www  .  j  av a  2 s.c om

    public static boolean isNotEmpty(final List<?> aList) {
        if (null != aList) {
            if (!aList.isEmpty()) {
                return true;
            }
        }
        return false;
    }
}

Related

  1. isAllElementsNull(List list)
  2. isArrayEmpty(List objList)
  3. isCollectionListEmpty()
  4. isCommentOrEmptyLine(int lineIndex, List linesOfFile)
  5. isEmpty(Collection list)
  6. isEmpty(final List values, final int position)
  7. isEmpty(final List list)
  8. isEmpty(final List objList)
  9. isEmpty(java.util.List list)