Class SuggestItem
java.lang.Object
org.languagetool.rules.spelling.symspell.implementation.SuggestItem
- All Implemented Interfaces:
Comparable<SuggestItem>, Comparator<SuggestItem>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSuggestItem(String term, int distance, long count) Create a new instance of SymSpell.SuggestItem. The suggested word. Edit distance from search word. Frequency of suggestion in dictionary. -
Method Summary
Modifier and TypeMethodDescriptionclone()intcompare(SuggestItem suggestItem, SuggestItem t1) intcompareTo(SuggestItem other) booleaninthashCode()toString()Methods inherited from interface Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
term
The suggested correctly spelled word. -
distance
public int distanceEdit distance between searched for word and suggestion. -
count
public long countFrequency of suggestion in the dictionary (a measure of how common the word is).
-
-
Constructor Details
-
SuggestItem
Create a new instance of SymSpell.SuggestItem. The suggested word. Edit distance from search word. Frequency of suggestion in dictionary.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<SuggestItem>
-
equals
- Specified by:
equalsin interfaceComparator<SuggestItem>- Overrides:
equalsin classObject
-
hashCode
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<SuggestItem>
-
clone
-