package Practicals.Ex4;

import java.util.Iterator;
import Practicals.Ex3.WordStream;

public interface Concordance
{
	// Add all the words in w to the mapping.
	void addWords(WordStream ws);

	// Return a stream containing all occurrences of the given word
	// (Providing that it is one of those returned by words())
	WordStream occurrences(String word);

	// Return an Iterator that enumerates, alphabetically, all distinct words
	Iterator words();
}