Package org.openrewrite.semver
Interface VersionComparator
- All Superinterfaces:
Comparator<String>
- All Known Implementing Classes:
CaretRange
,ExactVersion
,ExactVersionWithPattern
,HyphenRange
,LatestIntegration
,LatestMinor
,LatestPatch
,LatestRelease
,SetRange
,TildeRange
,XRange
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
default int
Deprecated.boolean
upgrade
(String currentVersion, Collection<String> availableVersions) Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
RELEASE_PATTERN
-
RELEASE_SUFFIXES
-
PRE_RELEASE_ENDING
-
-
Method Details
-
isValid
-
compare
Deprecated.- Specified by:
compare
in interfaceComparator<String>
-
compare
-
upgrade
-