Package com.avoka.core.util.ver
Class VersionComparator
- java.lang.Object
-
- com.avoka.core.util.ver.VersionComparator
-
- All Implemented Interfaces:
Comparator<String>
public class VersionComparator extends Object implements Comparator<String>
Provides a simple comparator that compares two version strings.- Since:
- 18.4.0
- See Also:
Version
-
-
Constructor Summary
Constructors Constructor Description VersionComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(String versionString1, String versionString2)
Compare two version strings.-
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
-
-
-
-
Method Detail
-
compare
public int compare(String versionString1, String versionString2)
Compare two version strings.- Specified by:
compare
in interfaceComparator<String>
- Parameters:
versionString1
- a valid version string (@see Version)versionString2
- a valid version string (@see Version)- Returns:
- the comparison value between the two version strings (@see Comparator)
-
-