Package org.openrewrite.semver
Class CaretRange
java.lang.Object
org.openrewrite.semver.LatestRelease
org.openrewrite.semver.CaretRange
- All Implemented Interfaces:
Comparator<String>,VersionComparator
Allows changes that do not modify the left-most non-zero element in the [major, minor, patch] tuple.
Caret ranges.
-
Field Summary
Fields inherited from interface org.openrewrite.semver.VersionComparator
PRE_RELEASE_ENDING, RELEASE_PATTERN, RELEASE_SUFFIXES -
Method Summary
Methods inherited from class org.openrewrite.semver.LatestRelease
buildLatestRelease, compareMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface org.openrewrite.semver.VersionComparator
compare, upgrade
-
Method Details
-
isValid
- Specified by:
isValidin interfaceVersionComparator- Overrides:
isValidin classLatestRelease
-
build
-