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
compare
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
Methods inherited from interface org.openrewrite.semver.VersionComparator
compare, isValid, upgrade
-
Method Details
-
isValid
- Specified by:
isValid
in interfaceVersionComparator
- Overrides:
isValid
in classLatestRelease
-
build
-