Implement the rpmvercmp function provided by librpm in Java. The comparator operates on two strings that represent an RPM version or release.
This comparator is not perfectly antysymmetric for unequal versions, but close enough to warrant being a comparator. For examples of asymmetry, check the test.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.