com.atlassian.crowd.upgrade.util
Class BuildNumberComparator

java.lang.Object
  extended by com.atlassian.crowd.upgrade.util.BuildNumberComparator
All Implemented Interfaces:
Comparator

public class BuildNumberComparator
extends Object
implements Comparator

A comparator for Crowd build numbers.


Constructor Summary
BuildNumberComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compares two string representation of build numbers.
 
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

BuildNumberComparator

public BuildNumberComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compares two string representation of build numbers.

These strings must be parsable to a number.

Specified by:
compare in interface Comparator
Parameters:
o1 -
o2 -
Returns:
Underlying number comparison notation - 1 = greater than, 0 = equals, -1 = less than.


Copyright © 2013 Atlassian. All Rights Reserved.