edu.northwestern.at.utils

## Class SetFactory

- java.lang.Object
- - edu.northwestern.at.utils.SetFactory

-     public class SetFactory
      extends java.lang.Object

  Factory for creating a HashSet.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `SetFactory()` Don't allow instantiation, do allow overrides.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <E> java.util.Set<E>` | `createNewSet()` Create a new HashSet.
    `static <E> java.util.Set<E>` | `createNewSet(int capacity)` Create a new HashSet.
    `static <E> java.util.SortedSet<E>` | `createNewSortedSet()` Create a new TreeSet.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SetFactory

          protected SetFactory()

      Don't allow instantiation, do allow overrides.

  - ### Method Detail

    - #### createNewSet

          public static <E> java.util.Set<E> createNewSet()

      Create a new HashSet.

    - #### createNewSet

          public static <E> java.util.Set<E> createNewSet(int capacity)

      Create a new HashSet.
      Parameters:
        `capacity` - Initial capacity.

    - #### createNewSortedSet

          public static <E> java.util.SortedSet<E> createNewSortedSet()

      Create a new TreeSet.