Package org.apache.ivy.plugins.parser.m2
Class MavenVersionRangeParser
java.lang.Object
org.apache.ivy.plugins.parser.m2.MavenVersionRangeParser
Parser that understands Maven version ranges of the form
(,1.0]
and such.
More details about such ranges in Maven, can be found
{@link https://cwiki.apache.org/confluence/display/MAVENOLD/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges here}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
private static interface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean
currentJavaVersionInRange
(String range) private static MavenVersionRangeParser.Range
(package private) static boolean
rangeAccepts
(String range, String value) private static String
stripBoundChars
(String value)
-
Field Details
-
javaVersion
-
-
Constructor Details
-
MavenVersionRangeParser
MavenVersionRangeParser()
-
-
Method Details
-
currentJavaVersionInRange
- Parameters:
range
- The range to compare against- Returns:
- Returns true if the current Java version, in which the instance of this class is running,
is within the specified
range
. Else returns false.
-
rangeAccepts
- Parameters:
range
- The range to compare againstvalue
- The value being compared- Returns:
- Compares the
value
against therange
and returns true if thevalue
lies within therange
. Else returns false.
-
parse
-
stripBoundChars
-