Class EntrySuggestion
- java.lang.Object
-
- org.apache.lucene.analysis.hunspell.EntrySuggestion
-
public class EntrySuggestion extends java.lang.Object
Suggestion to add/edit dictionary entries to generate a given list of words created byWordFormGenerator.compress(java.util.List<java.lang.String>, java.util.Set<java.lang.String>, java.lang.Runnable)
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
extraGenerated
private java.util.List<DictEntry>
toAdd
private java.util.List<DictEntry>
toEdit
-
Constructor Summary
Constructors Constructor Description EntrySuggestion(java.util.List<DictEntry> toEdit, java.util.List<DictEntry> toAdd, java.util.List<java.lang.String> extraGenerated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DictEntry>
getEntriesToAdd()
java.util.List<DictEntry>
getEntriesToEdit()
java.util.List<java.lang.String>
getExtraGeneratedWords()
(package private) java.lang.String
internalsToString()
java.lang.String
toString()
-
-
-
Method Detail
-
getEntriesToEdit
public java.util.List<DictEntry> getEntriesToEdit()
- Returns:
- the existing dictionary entries whose flags would need changing to accommodate the given word list
-
getEntriesToAdd
public java.util.List<DictEntry> getEntriesToAdd()
- Returns:
- new dictionary entries to be added to accommodate the given word list
-
getExtraGeneratedWords
public java.util.List<java.lang.String> getExtraGeneratedWords()
- Returns:
- additional words generated by union of
getEntriesToAdd()
andgetEntriesToEdit()
which weren't in the given list of words
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
internalsToString
java.lang.String internalsToString()
-
-