
/**
 * An empty word frequency list
 * 
 * @author Russell C. Bjork 
 * @version March 22, 2008
 */

public class EmptyWordFrequencyList implements WordFrequencyList
{
    /**
     * Constructor for objects of class EmptyWordFrequencyList
     */
    public EmptyWordFrequencyList() {
    }

    // The following methods are specified by interface WordFrequencyList
    
    public WordFrequencyList recordOccurrence(String word) {
         return new NonEmptyWordFrequencyList(word, 1, this);
    }
    
    public int length() {
        return 0;
    }
    
    public int totalFrequencies() {
        return 0;
    }
    
    public int occurrencesFor(String word) {
        return 0;
    }
    
    public void print() {
    }
}
