org.apache.lucene.search.suggest
Class Lookup.LookupResult
java.lang.Object
org.apache.lucene.search.suggest.Lookup.LookupResult
- All Implemented Interfaces:
- Comparable<Lookup.LookupResult>
- Enclosing class:
- Lookup
public static final class Lookup.LookupResult
- extends Object
- implements Comparable<Lookup.LookupResult>
Result of a lookup.
key
public final String key
value
public final float value
Lookup.LookupResult
public Lookup.LookupResult(String key,
float value)
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(Lookup.LookupResult o)
- Compare alphabetically.
- Specified by:
compareTo
in interface Comparable<Lookup.LookupResult>
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.