Package com.avoka.core.util.ver
Class VersionComparator
java.lang.Object
com.avoka.core.util.ver.VersionComparator
- All Implemented Interfaces:
Comparator<String>
Provides a simple comparator that compares two version strings.
- Since:
- 18.4.0
- See Also:
-
Constructor Summary
-
Method Summary
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
-
Constructor Details
-
VersionComparator
public VersionComparator()
-
-
Method Details
-
compare
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)
-