|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.QualifierFrequencyImpl
Default implementation of the QualifierFrequency
interface.
Constructor Summary | |
QualifierFrequencyImpl()
Instantiates an empty QualifierFrequency . |
|
QualifierFrequencyImpl(QualifierFrequency qf)
Instantiates a QualifierFrequency from the specified QualifierFrequency . |
Method Summary | |
int |
compareTo(Object o)
Compares this QualifierFrequency to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
int |
getFrequency()
Returns the frequency. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getQualifier()
Returns the qualifier value. |
int |
hashCode()
Return a hash code based on key fields. |
void |
setFrequency(int freq)
Sets the frequency; |
void |
setQualifier(String qual)
Sets the qualifier value. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QualifierFrequencyImpl()
QualifierFrequency
.
public QualifierFrequencyImpl(QualifierFrequency qf)
QualifierFrequency
from the specified QualifierFrequency
.
qf
- QualifierFrequency
to be copiedMethod Detail |
public String getQualifier()
getQualifier
in interface QualifierFrequency
public void setQualifier(String qual)
setQualifier
in interface QualifierFrequency
qual
- the qualifier valuepublic int getFrequency()
getFrequency
in interface QualifierFrequency
public void setFrequency(int freq)
setFrequency
in interface QualifierFrequency
freq
- the frequencypublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface QualifierFrequency
String
composed from the frequency and qualifier.public int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be a
QualifierFrequency
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
QualifierFrequency
to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo
in interface Comparable
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 |