|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.util.MetadataComparator
public class MetadataComparator
A comparator that sorts first based on non-retired, and second based on name. (Locale is currently not used, but will be when we add the ability to localize metadata.)
Constructor Summary | |
---|---|
MetadataComparator(java.util.Locale locale)
|
Method Summary | |
---|---|
int |
compare(OpenmrsMetadata left,
OpenmrsMetadata right)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public MetadataComparator(java.util.Locale locale)
locale
- Method Detail |
---|
public int compare(OpenmrsMetadata left, OpenmrsMetadata right)
compare
in interface java.util.Comparator<OpenmrsMetadata>
Comparator.compare(java.lang.Object, java.lang.Object)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |