Java Collection Empty isNonEmpty(Collection coll)

Here you can find the source of isNonEmpty(Collection coll)

Description

is Non Empty

License

Open Source License

Parameter

Parameter Description
coll a parameter

Return

!isNullOrEmpty(coll);

Declaration

public static boolean isNonEmpty(Collection<?> coll) 

Method Source Code

//package com.java2s;
//it under the terms of the GNU Affero General Public License as published by

import java.util.Collection;

public class Main {
    /**//w w  w  .  j  a  v a2  s .c o  m
     * @param coll
     * @return !isNullOrEmpty(coll);
     */
    public static boolean isNonEmpty(Collection<?> coll) {
        return !isNullOrEmpty(coll);
    }

    /**
     * @param coll
     * @return (coll == null) || coll.isEmpty();
     */
    public static boolean isNullOrEmpty(Collection<?> coll) {
        return (coll == null) || coll.isEmpty();
    }
}

Related

  1. isEmptyCollection(Object obj)
  2. isEmptyCollection(Object object)
  3. isEmptyException(Collection collection)
  4. isEmptyNotesField(Collection col)
  5. isEmptyString(Collection theCollection)
  6. isNonEmpty(final Collection values)
  7. isNotEmpty(@SuppressWarnings("rawtypes") Collection collection)
  8. isNotEmpty(Collection c)
  9. isNotEmpty(Collection collection)

  10. HOME | Copyright © www.java2s.com 2016