org.testng.collections.CollectionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
A testing framework for the JVM
package org.testng.collections;
import java.util.Collection;
import java.util.Map;
public final class CollectionUtils {
private CollectionUtils() {}
public static boolean hasElements(Collection c) {
return c != null && ! c.isEmpty();
}
public static boolean hasElements(Map c) {
return c != null && ! c.isEmpty();
}
}