Package com.atlassian.confluence.upgrade
Class VersionNumberComparator
- java.lang.Object
-
- com.atlassian.confluence.upgrade.VersionNumberComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<String>
public class VersionNumberComparator extends Object implements Comparator<String>, Serializable
Comparator that attempts to place software version numbers (i.e. 1.10, 1.1.1, 1.1-beta2) in some kind of logical order- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static VersionNumberComparator
INSTANCE
-
Constructor Summary
Constructors Constructor Description VersionNumberComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
INSTANCE
public static final VersionNumberComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(String o1, String o2)
- Specified by:
compare
in interfaceComparator<String>
- See Also:
Comparator
-
-