java.lang.Comparable<DirectCandidateGenerator.Candidate>public static class DirectCandidateGenerator.Candidate extends java.lang.Object implements java.lang.Comparable<DirectCandidateGenerator.Candidate>
| Modifier and Type | Field | Description |
|---|---|---|
static DirectCandidateGenerator.Candidate[] |
EMPTY |
|
long |
frequency |
|
double |
score |
|
double |
stringDistance |
|
org.apache.lucene.util.BytesRef |
term |
|
boolean |
userInput |
| Constructor | Description |
|---|---|
Candidate(org.apache.lucene.util.BytesRef term,
long frequency,
double stringDistance,
double score,
boolean userInput) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(DirectCandidateGenerator.Candidate other) |
Lower scores sort first; if scores are equal, then later (zzz) terms sort first
|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
java.lang.String |
toString() |
public static final DirectCandidateGenerator.Candidate[] EMPTY
public final org.apache.lucene.util.BytesRef term
public final double stringDistance
public final long frequency
public final double score
public final boolean userInput
public Candidate(org.apache.lucene.util.BytesRef term,
long frequency,
double stringDistance,
double score,
boolean userInput)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(DirectCandidateGenerator.Candidate other)
compareTo in interface java.lang.Comparable<DirectCandidateGenerator.Candidate>