|
|||||||||
| 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
public class 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 copied| Method Detail |
|---|
public String getQualifier()
getQualifier in interface QualifierFrequencypublic void setQualifier(String qual)
setQualifier in interface QualifierFrequencyqual - the qualifier valuepublic int getFrequency()
getFrequency in interface QualifierFrequencypublic void setFrequency(int freq)
setFrequency in interface QualifierFrequencyfreq - the frequencypublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface QualifierFrequencyString composed from the frequency and qualifier.public int hashCode()
hashCode in class Objectpublic 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.
equals in class Objecto - 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 Comparableo - 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 | ||||||||