Package org.openrewrite.semver
Class XRange
- java.lang.Object
-
- org.openrewrite.semver.LatestRelease
-
- org.openrewrite.semver.XRange
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.String>,VersionComparator
public class XRange extends LatestRelease
Any of X, x, or * may be used to "stand in" for one of the numeric values in the [major, minor, patch] tuple. X-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 Validatedbuild(java.lang.String pattern, @Nullable java.lang.String metadataPattern)booleanisValid(@Nullable java.lang.String currentVersion, java.lang.String version)-
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 Detail
-
isValid
public boolean isValid(@Nullable @Nullable java.lang.String currentVersion, java.lang.String version)
- Specified by:
isValidin interfaceVersionComparator- Overrides:
isValidin classLatestRelease
-
-