Class HashSetFactory
java.lang.Object
com.ibm.wala.util.collections.HashSetFactory
A debugging aid. When HashSetFactory.DEBUG is set, this class creates ParanoidHashSets.
Otherwise, it returns
LinkedHashSets-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanIf true, this factory returns Paranoid versions of collections -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEBUG
public static final boolean DEBUGIf true, this factory returns Paranoid versions of collections- See Also:
-
-
Constructor Details
-
HashSetFactory
public HashSetFactory()
-
-
Method Details
-
make
- Returns:
- A
ParanoidHashSetif DEBUG = true, a java.util.HashSet otherwise
-
make
- Returns:
- A ParanoidHashSet if DEBUG = true, a java.util.HashSet otherwise
-
make
- Returns:
- A ParanoidHashSet if DEBUG = true, a java.util.HashSet otherwise
-
of
- Returns:
- A
ParanoidHashSetifDEBUGistrue, aHashSetotherwise - See Also:
-
toSet
-