com.atlassian.crowd.upgrade.util
Class BuildNumberComparator
java.lang.Object
com.atlassian.crowd.upgrade.util.BuildNumberComparator
- All Implemented Interfaces:
- Comparator
public class BuildNumberComparator
- extends Object
- implements Comparator
A comparator for Crowd build numbers.
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 |
BuildNumberComparator
public BuildNumberComparator()
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.