All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.commons.collections.CollectionUtils Maven / Gradle / Ivy

There is a newer version: 2.6.2
Show newest version
package org.apache.commons.collections;

import java.util.Collection;

// This is copied out of `org.apache.commons.collections`, since it is rather big and barely used.
// Probably used by one of our dependencies (that now has the `transitive = false` flag set).

@SuppressWarnings("unused") // Used indirectly, removing it makes test fail.
public class CollectionUtils {
  public static  boolean isEmpty(Collection collection) {
    return (collection == null || collection.isEmpty());
  }

  public static  boolean isNotEmpty(Collection collection) {
    return !isEmpty(collection);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy