|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.module.VersionComparator
public class VersionComparator
A comparator which takes version numbers stored as string. It assumes the versions are separated by periods and does not contain letters. This prevents the version number 10 from coming before version number 9.
Constructor Summary | |
---|---|
VersionComparator()
|
Method Summary | |
---|---|
int |
compare(java.lang.String o1,
java.lang.String o2)
|
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 VersionComparator()
Method Detail |
---|
public int compare(java.lang.String o1, java.lang.String o2)
compare
in interface java.util.Comparator<java.lang.String>
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 |