|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.CoocurrenceImpl
gov.nih.nlm.umls.meta.impl.AtomCoocurrenceImpl
Default implementation of the Coocurrence
interface.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.AtomElement |
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement |
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
Field Summary |
Fields inherited from class gov.nih.nlm.umls.meta.impl.CoocurrenceImpl |
key_fields, key_fields_flag |
Constructor Summary | |
AtomCoocurrenceImpl()
Instantiates an empty AtomCoocurrence . |
|
AtomCoocurrenceImpl(AtomCoocurrence co)
Instantiates an AtomCoocurrence from the specified AtomCoocurrence . |
Method Summary | |
int |
compareTo(Object o)
Compares this AtomCoocurrence to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Atom |
getAtom()
Returns the Atom this AtomCoocurrence is connected to. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Atom |
getRelatedAtom()
Returns the related atom involved. |
int |
hashCode()
Return a hash code based on key fields. |
void |
setAtom(Atom atom)
Sets the Atom this AtomCoocurrence is connected to. |
void |
setRelatedAtom(Atom related_atom)
Sets the second atom involved. |
Methods inherited from class gov.nih.nlm.umls.meta.impl.CoocurrenceImpl |
getCoa, getCof, getConcept, getContentView, getCoocurrenceAttribute, getCoocurrenceFrequency, getCoocurrenceType, getCot, getCvf, getQualifierAsList, getQualifiers, getRelatedConcept, getSource, setCoa, setCof, setConcept, setContentView, setCoocurrenceAttribute, setCoocurrenceFrequency, setCoocurrenceType, setCot, setCvf, setQualifiers, setQualifiers, setRelatedConcept, setSource |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.nih.nlm.umls.meta.Coocurrence |
getCoa, getCof, getCoocurrenceAttribute, getCoocurrenceFrequency, getCoocurrenceType, getCot, getQualifierAsList, getQualifiers, setCoa, setCof, setCoocurrenceAttribute, setCoocurrenceFrequency, setCoocurrenceType, setCot, setQualifiers, setQualifiers |
Methods inherited from interface gov.nih.nlm.umls.meta.ConceptElement |
getConcept, setConcept |
Methods inherited from interface gov.nih.nlm.umls.meta.ContentViewElement |
getContentView, getCvf, setContentView, setCvf |
Methods inherited from interface gov.nih.nlm.umls.meta.RelatedConceptElement |
getRelatedConcept, setRelatedConcept |
Methods inherited from interface gov.nih.nlm.umls.meta.SourceElement |
getSource, setSource |
Constructor Detail |
public AtomCoocurrenceImpl()
AtomCoocurrence
.
public AtomCoocurrenceImpl(AtomCoocurrence co)
AtomCoocurrence
from the specified AtomCoocurrence
.
co
- AtomCoocurrence
to be copiedMethod Detail |
public Atom getRelatedAtom()
getRelatedAtom
in interface RelatedAtomElement
public void setRelatedAtom(Atom related_atom)
setRelatedAtom
in interface RelatedAtomElement
related_atom
- the related concept involvedpublic Atom getAtom()
Atom
this AtomCoocurrence
is connected to.
getAtom
in interface AtomElement
Atom
this AtomCoocurrence
is connected topublic void setAtom(Atom atom)
Atom
this AtomCoocurrence
is connected to.
setAtom
in interface AtomElement
atom
- the Atom
this AtomCoocurrence
is connected topublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface Coocurrence
getKeyFields
in class CoocurrenceImpl
String
composed from the cui, aui, cui2, aui2,
versioned source, and cot.public int hashCode()
hashCode
in class CoocurrenceImpl
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be an
AtomCoocurrence
with matching key fields.
equals
in class CoocurrenceImpl
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
AtomCoocurrence
to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo
in interface Comparable
compareTo
in class CoocurrenceImpl
o
- the Object
to compare to
int
representing the relative ordering
of this and the compare-to object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |