edu.columbia.cs.util
Class DictionaryFactory

java.lang.Object
  |
  +--edu.columbia.cs.util.DictionaryFactory

public class DictionaryFactory
extends java.lang.Object

Reads in /usr/dict/words and creates a HashSet out of it.


Method Summary
 java.util.HashSet getDictionary()
          Get the HashSet representation of words.
static DictionaryFactory getInstance()
          Get the instance of the DictionaryFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DictionaryFactory getInstance()
Get the instance of the DictionaryFactory.

getDictionary

public java.util.HashSet getDictionary()
Get the HashSet representation of words.
Returns:
HashSet of words