1 package org.testng.collections; 2 3 import java.util.Collection; 4 import java.util.HashSet; 5 import java.util.LinkedHashSet; 6 import java.util.Set; 7 8 public final class Sets { 9 Sets()10 private Sets() {} 11 newHashSet()12 public static <V> Set<V> newHashSet() { 13 return new HashSet<>(); 14 } 15 newHashSet(Collection<V> c)16 public static <V> Set<V> newHashSet(Collection<V> c) { 17 return new HashSet<>(c); 18 } 19 newLinkedHashSet()20 public static <V> Set<V> newLinkedHashSet() { 21 return new LinkedHashSet<>(); 22 } 23 } 24