Package org.openrewrite.semver
Class TildeRange
java.lang.Object
org.openrewrite.semver.LatestRelease
org.openrewrite.semver.TildeRange
- All Implemented Interfaces:
Comparator<String>,VersionComparator
Allows patch-level changes if a minor version is specified on the comparator. Allows minor-level changes if not.
Tilde 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
-