org.rhq.core.domain.util
Class OSGiVersionComparator

java.lang.Object
  extended by org.rhq.core.domain.util.OSGiVersionComparator
All Implemented Interfaces:
Comparator<String>

public class OSGiVersionComparator
extends Object
implements Comparator<String>

The specification for what makes up an OSGi compliant version string and how they can be compared was taken from here: http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/osgi/org/osgi/framework/Version.html


Constructor Summary
OSGiVersionComparator()
           
 
Method Summary
 int compare(String string1, String string2)
           
 
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

OSGiVersionComparator

public OSGiVersionComparator()
Method Detail

compare

public int compare(String string1,
                   String string2)
Specified by:
compare in interface Comparator<String>


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.