org.testng.collections.Sets 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.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
public final class Sets {
private Sets() {}
public static Set newHashSet() {
return new HashSet<>();
}
public static Set newHashSet(Collection c) {
return new HashSet<>(c);
}
public static Set newLinkedHashSet() {
return new LinkedHashSet<>();
}
}