com.atlassian.confluence.upgrade
Class VersionNumberComparator

java.lang.Object
  extended by com.atlassian.confluence.upgrade.VersionNumberComparator
All Implemented Interfaces:
Comparator<String>

public class VersionNumberComparator
extends Object
implements Comparator<String>

Comparator that attempts to place software version numbers (i.e. 1.10, 1.1.1, 1.1-beta2) in some kind of logical order


Constructor Summary
VersionNumberComparator()
           
 
Method Summary
 int compare(String o1, 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

VersionNumberComparator

public VersionNumberComparator()
Method Detail

compare

public int compare(String o1,
                   String o2)
Specified by:
compare in interface Comparator<String>
See Also:
Comparator


Copyright © 2003-2013 Atlassian. All Rights Reserved.