Java Collection Empty isNotEmpty(Collection c)

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

Description

Returns true if the passed collection is not null and has size > 0.

License

Apache License

Declaration

public static boolean isNotEmpty(Collection<?> c) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.util.Collection;

public class Main {
    /**/*  www.j a va 2s  . c o m*/
     *  Returns <code>true</code> if the passed collection is not <code>null</code>
     *  and has size &gt; 0.
     */
    public static boolean isNotEmpty(Collection<?> c) {
        return (c != null) && (c.size() > 0);
    }
}

Related

  1. isNotEmpty(Collection collection)
  2. isNotEmpty(Collection collection)
  3. isNotEmpty(Collection collection)
  4. isNotEmpty(Collection collection)
  5. isNotEmpty(Collection list)
  6. isNotEmpty(Collection c)
  7. isNotEmpty(Collection c)
  8. isNotEmpty(Collection col)
  9. isNotEmpty(Collection colecao)