com.ibm.wala.util.collections
Class HashSetFactory
java.lang.Object
com.ibm.wala.util.collections.HashSetFactory
public class HashSetFactory
- extends java.lang.Object
A debugging aid. When HashSetFactory.DEBUG is set, this class creates ParanoidHashSets. Otherwise,
it returns java.util.HashSets
|
Field Summary |
static boolean |
DEBUG
If true, this factory returns Paranoid versions of collections |
|
Method Summary |
static
|
make()
|
static
|
make(int size)
|
static
|
make(java.util.Set<T> s)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- If true, this factory returns Paranoid versions of collections
- See Also:
- Constant Field Values
HashSetFactory
public HashSetFactory()
make
public static <T> java.util.HashSet<T> make(int size)
- Parameters:
size -
- Returns:
- A ParanoidHashSet if DEBUG = true, a java.util.HashSet otherwise
make
public static <T> java.util.HashSet<T> make()
- Returns:
- A ParanoidHashSet if DEBUG = true, a java.util.HashSet otherwise
make
public static <T> java.util.HashSet<T> make(java.util.Set<T> s)
- Parameters:
s -
- Returns:
- A ParanoidHashSet if DEBUG = true, a java.util.HashSet otherwise