
org.testng.collections.CollectionUtils Maven / Gradle / Ivy
package org.testng.collections;
import java.util.Collection;
import java.util.Iterator;
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();
}
public static Iterable asIterable(Iterator iterator) {
return () -> iterator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy