org.hibernate.search.test.util.textbuilder
Class WordDictionary

java.lang.Object
  extended by org.hibernate.search.test.util.textbuilder.WordDictionary

public class WordDictionary
extends Object

Test utility meant to build a consistent dictionary of words. This is not just a random generator: like in natural languages shorter terms have a higher frequency in a text corpus and the dictionary size is limited.

Author:
Sanne Grinovero

Constructor Summary
WordDictionary(Set<String> words)
           
 
Method Summary
 String randomWord()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordDictionary

public WordDictionary(Set<String> words)
Method Detail

randomWord

public String randomWord()


Copyright © 2006-2010 Hibernate. All Rights Reserved.