Android Collection Empty Check isNotEmpty(Collection collection)

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

Description

Checks if provided Collection is null and not empty.

Declaration

public static boolean isNotEmpty(Collection<?> collection) 

Method Source Code

//package com.java2s;

import java.util.Collection;

public class Main {
    /**/*from www .  j  av  a2s .com*/
     * Checks if provided {@link Collection} is null and not empty.
     */
    public static boolean isNotEmpty(Collection<?> collection) {
        return (collection != null && collection.size() > 0);
    }
}

Related

  1. isEmpty(Collection list)
  2. isEmpty(Collection theCollection)
  3. isEmpty(Collection theCollection)
  4. isEmpty(Collection c)
  5. isEmpty(final Collection collection)
  6. isNotEmpty(Collection list)
  7. isNotNull(Collection coll)
  8. isNotNull(Collection collection)
  9. isNull(Collection coll)