Package org.openrewrite.semver
Class CaretRange
- java.lang.Object
-
- org.openrewrite.semver.LatestRelease
-
- org.openrewrite.semver.CaretRange
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.String>
,VersionComparator
public class CaretRange extends LatestRelease
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Validated
build(java.lang.String pattern, @Nullable java.lang.String metadataPattern)
boolean
isValid(java.lang.String version)
-
Methods inherited from class org.openrewrite.semver.LatestRelease
compare
-
-
-
-
Method Detail
-
isValid
public boolean isValid(java.lang.String version)
- Specified by:
isValid
in interfaceVersionComparator
- Overrides:
isValid
in classLatestRelease
-
-