|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.matching.Instance
public class Instance
The Instance class represents an instance and its number of appearances.
| Constructor Summary | |
|---|---|
Instance()
|
|
Instance(java.lang.String value,
int appearances)
Constructs an Instance object. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
boolean |
equals(java.lang.Object o)
|
int |
getAppearances()
Returns the number of appearances of the value of this instance. |
java.lang.String |
getValue()
Returns the value of this instance. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Instance()
public Instance(java.lang.String value,
int appearances)
Instance object.
value - the value of the instanceappearances - the number of appearances of the specific value| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatorpublic boolean equals(java.lang.Object o)
equals in interface java.util.Comparatorequals in class java.lang.Objectpublic java.lang.String getValue()
public int getAppearances()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||