|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.Concept.ByPreferredNameComparator
public static final class Concept.ByPreferredNameComparator
Sorts the Concepts based on String order.
| Constructor Summary | |
|---|---|
Concept.ByPreferredNameComparator(Language lat)
Instantiates a comparator. |
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
Object o2)
Compares the specified field of each String object. |
boolean |
equals(Comparator comp)
Indicates if the given Comparator is
a Concept.ByPreferredNameComparator |
String |
getPreferredName(Concept c)
Looks up concept preferred name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public Concept.ByPreferredNameComparator(Language lat)
lat - Language in which sort will be done| Method Detail |
|---|
public int compare(Object o1,
Object o2)
String object.
compare in interface Comparatoro1 - the first Object to be compared.o2 - the second Object to be compared.
int which might be negative integer, zero, or a positive integer
as the first argument is less than, equal to, or greater than the second.public String getPreferredName(Concept c)
c - the Concept
Conceptpublic String toString()
toString in class Objectpublic boolean equals(Comparator comp)
Comparator is
a Concept.ByPreferredNameComparator
comp - Comparator
true if the given Comparator is
a Concept.ByPreferredNameComparator
false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||