Code example for Hashtable

Methods: values

0
	public int getNumDocsParsed () { 
		return numDocsParsed;
	} 
 
	public void updateDocumentMaxWordFrequency () { 
		Collection<Integer> c = words.values ();
		if (c.size () > 0) {
			int max = (Integer) Collections.max (c);
			// System.out.println("Max frequency:"+max); 
			currentDocument.setMaxWordFrequency (max);
			store.putDocument (currentDocument);
		} else { 
			currentDocument.setMaxWordFrequency (0); // if no words then max
			// word frequency 
			// zero... 
			store.putDocument (currentDocument);
 
		} 
	} 
 
	/*