Java Collection Empty isCollectionNotEmpty(Collection collection)

Here you can find the source of isCollectionNotEmpty(Collection collection)

Description

is Collection Not Empty

License

Apache License

Declaration

public static <T> boolean isCollectionNotEmpty(Collection<T> collection) 

Method Source Code

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

import java.util.Collection;

public class Main {
    public static <T> boolean isCollectionNotEmpty(Collection<T> collection) {
        return !isCollectionEmpty(collection);
    }/*  w w w. j  ava 2 s.c  o  m*/

    public static <T> boolean isCollectionEmpty(Collection<T> collection) {
        return collection == null || collection.isEmpty();
    }
}

Related

  1. getSingletonCollectionOrEmptyIfNull(T o)
  2. isAnyEmpty(Collection... collections)
  3. isCollectionEmpty(Collection collection)
  4. isCollectionEmpty(Collection oneCol)
  5. isCollectionEmpty(Collection value)
  6. isCollectionNullOrEmpty(Collection collection)
  7. isEmpty(Collection c)
  8. isEmpty(Collection c)
  9. isEmpty(Collection c)