|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.javamatch.engine.ResultItem
Class ResultItem contains the match result of a single object and its match value
Field Summary | |
java.lang.Object |
matchedObject
The matched object |
float |
matchValue
The match value of this ResultItem |
Constructor Summary | |
ResultItem()
Creates a new, empty, ResultItem |
|
ResultItem(java.lang.Object matchedObject,
float matchValue)
Creates a new ResultItem with the given matched object and match value |
Method Summary | |
int |
compareTo(java.lang.Object otherObject)
Compares this result item with the given other item |
java.lang.Object |
getMatchedObject()
Returns the matched object |
float |
getMatchValue()
Returns the match value of this ResultItem |
void |
setMatchedObject(java.lang.Object matchedObject)
Sets the matched object |
void |
setMatchValue(float matchValue)
Sets the match value of this ResultItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public float matchValue
public java.lang.Object matchedObject
Constructor Detail |
public ResultItem()
public ResultItem(java.lang.Object matchedObject, float matchValue)
matchedObject
- the object that was matchedmatchValue
- the return value of the matching of the matched objectMethod Detail |
public void setMatchValue(float matchValue)
matchValue
- the return value of the matching of the matched objectpublic float getMatchValue()
public void setMatchedObject(java.lang.Object matchedObject)
matchedObject
- the object that was matchedpublic java.lang.Object getMatchedObject()
public int compareTo(java.lang.Object otherObject)
compareTo
in interface java.lang.Comparable
otherObject
- the other object, agains which this object is compared
|
Hosted by |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |