|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.AbstractExpandedForm
public abstract class AbstractExpandedForm
Abstract implementation of ExpandedForm providing
equals, hashCode, toString,
and compareTo methods to any descendents.
All classes implementing ExpandedForm should probably
extend this class instead.
| Constructor Summary | |
|---|---|
AbstractExpandedForm()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares the given Object with this ExpandedForm. |
boolean |
equals(Object o)
Compares the given Object with this ExpandedForm
for equality. |
int |
hashCode()
Return a hash code based on key fields. |
String |
toString()
Return a string representation for an Object consisting
of its subkey. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gov.nih.nlm.umls.meta.ExpandedForm |
|---|
getAbbreviation, getDescription |
| Constructor Detail |
|---|
public AbstractExpandedForm()
| Method Detail |
|---|
public boolean equals(Object o)
Object with this ExpandedForm
for equality.
equals in class Objecto - parameter to be compared to this ExpandedForm
true if they are equal
false otherwisepublic int compareTo(Object o)
Object with this ExpandedForm.
compareTo in interface Comparableo - parameter to be compared to this ExpandedForm
Object parameter
0 if this object is equal to the given Object parameter
1 if this object is greater than the given Object parameterpublic int hashCode()
hashCode in class Objectpublic String toString()
Object consisting
of its subkey.
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||