public class HashSetFactory extends Object
LinkedHashSets| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG
If true, this factory returns Paranoid versions of collections
|
| Constructor and Description |
|---|
HashSetFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> HashSet<T> |
make() |
static <T> HashSet<T> |
make(Collection<T> s) |
static <T> HashSet<T> |
make(int size) |
public static final boolean DEBUG
public static <T> HashSet<T> make(int size)
ParanoidHashSet if DEBUG = true, a java.util.HashSet otherwisepublic static <T> HashSet<T> make()
public static <T> HashSet<T> make(Collection<T> s)