com.primus.searchstudio
Class RelatedStatement
java.lang.Object
com.primus.searchstudio.RelatedStatement
- All Implemented Interfaces:
- java.io.Serializable
public class RelatedStatement
- extends java.lang.Object
- implements java.io.Serializable
Search result value object.
- See Also:
- Serialized Form
Constructor Summary |
RelatedStatement(int count,
double score,
java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelatedStatement
public RelatedStatement(int count,
double score,
java.lang.String text)
getCount
public java.lang.String getCount()
getScoreAsString
public java.lang.String getScoreAsString()
getText
public java.lang.String getText()
getPopularity
public int getPopularity()
- Allows sorting of RelatedStatement instances by score. This is
just a utility function--the results collater/merger
facilities are much more capable.
setPopularity
public void setPopularity(int p)