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 classprivate static final classprivate static final classprivate static interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleancurrentJavaVersionInRange(String range) private static MavenVersionRangeParser.Range(package private) static booleanrangeAccepts(String range, String value) private static StringstripBoundChars(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
valueagainst therangeand returns true if thevaluelies within therange. Else returns false.
-
parse
-
stripBoundChars
-