Code example for SuggestionsInfo

0
	public Session createSession() {
		return new AnySpellCheckerSession(); 
	} 
 
	private static SuggestionsInfo getNotInDictEmptySuggestions() {
		return new SuggestionsInfo(0, EMPTY_STRING_ARRAY);
	} 
 
	private static SuggestionsInfo getInDictEmptySuggestions() {
		return new SuggestionsInfo(
				SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY,
				EMPTY_STRING_ARRAY);
	} 
 
	private static class AnySpellCheckerSession extends Session {
 
		AnySpellCheckerSession() { 
		} 
 
		/** 
		 * Finds out whether a particular string should be filtered out of spell