org.apache.commons.collections.CollectionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
RePlay is a fork of the Play1 framework, created by Codeborne.
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);
}
}