|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.suggest.Lookup.LookupResult
public static final class Lookup.LookupResult
Result of a lookup.
Field Summary | |
---|---|
CharSequence |
key
the key's text |
long |
value
the key's weight |
Constructor Summary | |
---|---|
Lookup.LookupResult(CharSequence key,
long value)
Create a new result from a key+weight pair. |
Method Summary | |
---|---|
int |
compareTo(Lookup.LookupResult o)
Compare alphabetically. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final CharSequence key
public final long value
Constructor Detail |
---|
public Lookup.LookupResult(CharSequence key, long value)
Method Detail |
---|
public String toString()
toString
in class Object
public int compareTo(Lookup.LookupResult o)
compareTo
in interface Comparable<Lookup.LookupResult>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |