public final class Correction extends java.lang.Object implements java.lang.Comparable<Correction>
Modifier and Type | Field and Description |
---|---|
DirectCandidateGenerator.Candidate[] |
candidates |
static Correction[] |
EMPTY |
double |
score |
Constructor and Description |
---|
Correction(double score,
DirectCandidateGenerator.Candidate[] candidates) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Correction other)
Lower scores sorts first; if scores are equal,
than later terms (zzz) sort first .
|
org.apache.lucene.util.BytesRef |
join(org.apache.lucene.util.BytesRef separator) |
org.apache.lucene.util.BytesRef |
join(org.apache.lucene.util.BytesRef separator,
org.apache.lucene.util.BytesRefBuilder result,
org.apache.lucene.util.BytesRef preTag,
org.apache.lucene.util.BytesRef postTag) |
org.apache.lucene.util.BytesRef |
join(org.apache.lucene.util.BytesRef separator,
org.apache.lucene.util.BytesRef preTag,
org.apache.lucene.util.BytesRef postTag) |
java.lang.String |
toString() |
public static final Correction[] EMPTY
public double score
public final DirectCandidateGenerator.Candidate[] candidates
public Correction(double score, DirectCandidateGenerator.Candidate[] candidates)
public java.lang.String toString()
toString
in class java.lang.Object
public org.apache.lucene.util.BytesRef join(org.apache.lucene.util.BytesRef separator)
public org.apache.lucene.util.BytesRef join(org.apache.lucene.util.BytesRef separator, org.apache.lucene.util.BytesRef preTag, org.apache.lucene.util.BytesRef postTag)
public org.apache.lucene.util.BytesRef join(org.apache.lucene.util.BytesRef separator, org.apache.lucene.util.BytesRefBuilder result, org.apache.lucene.util.BytesRef preTag, org.apache.lucene.util.BytesRef postTag)
public int compareTo(Correction other)
compareTo
in interface java.lang.Comparable<Correction>