|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.matching.ScoreElement
Represents the results of a match against a particular object, represented by it's EUID.
| Constructor Summary | |
ScoreElement(java.lang.String aEUID,
double aWeight)
Create a new ScoreElement given a euid and weight |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Defines the natural ordering of ScoreElements for sorting - ScoreElement with the highest weight first. |
boolean |
equals(java.lang.Object o)
Defines when a ScoreElements is considered equals to another ScoreElement. |
java.lang.String |
getEUID()
Accessor for EUID |
double |
getWeight()
Accessor for the score weight |
int |
hashCode()
Calculate the hashcode of this object, based on the equals definition above, just based on the euid |
void |
setEUID(java.lang.String aEUID)
Accessor for EUID |
void |
setWeight(double aWeight)
Accessor for EUID |
java.lang.String |
toString()
Simple toString for debugging purposes |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Constructor Detail |
public ScoreElement(java.lang.String aEUID,
double aWeight)
aEUID - the euidaWeight - the weight calculated for the match of the given euid| Method Detail |
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
o - the ScoreElement to compare it to
java.lang.ClassCastException - if comparing against an object
that can not be cast to ScoreElement
public boolean equals(java.lang.Object o)
throws java.lang.ClassCastException
o - the ScoreElement to compare to
java.lang.ClassCastException - if comparing against an object
that can not be cast to ScoreElementpublic java.lang.String getEUID()
public double getWeight()
public int hashCode()
public void setEUID(java.lang.String aEUID)
aEUID - sets the euid of the ScoreElementpublic void setWeight(double aWeight)
aWeight - sets the score weight of the ScoreElementpublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.