|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.retrieval.ProbDoc
A (document ID,weight) pair.
| Field Summary | |
protected java.lang.String |
docID
The ID of the document. |
protected double |
weight
The weight of the document. |
| Constructor Summary | |
ProbDoc()
Creates a new, empty instance. |
|
ProbDoc(java.lang.String docID,
double weight)
Creates a new instance. |
|
| Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares this entry (the score in decreasing order) with the specified one. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDocID()
Returns the ID of the document. |
double |
getWeight()
Returns the weight of the document. |
int |
hashCode()
|
void |
setDocID(java.lang.String docID)
Sets the ID of the document. |
void |
setWeight(double weight)
Sets the weight of the document. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String docID
protected double weight
| Constructor Detail |
public ProbDoc()
public ProbDoc(java.lang.String docID,
double weight)
| Method Detail |
public java.lang.String getDocID()
public void setDocID(java.lang.String docID)
docID - ID of the document.public double getWeight()
public void setWeight(double weight)
weight - weight of the documentpublic boolean equals(java.lang.Object obj)
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the reference object with which to compare.
public int hashCode()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||