Package org.apache.maven.internal.impl
Class DefaultModelVersionParser.DefaultVersionRange
java.lang.Object
org.apache.maven.internal.impl.DefaultModelVersionParser.DefaultVersionRange
- All Implemented Interfaces:
VersionRange
- Enclosing class:
DefaultModelVersionParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.api.VersionRange
VersionRange.Boundary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.aether.version.VersionRange
private final org.eclipse.aether.version.VersionScheme
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultVersionRange
(org.eclipse.aether.version.VersionScheme versionScheme, String delegateValue) DefaultVersionRange
(org.eclipse.aether.version.VersionScheme versionScheme, org.eclipse.aether.version.VersionRange delegate) -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns a string representation of this version rangeboolean
Determines whether the specified version is contained within this range.boolean
Returns the lower boundary of this range, ornull
if none.Returns the upper boundary of this range, ornull
if none.int
hashCode()
toString()
-
Field Details
-
versionScheme
private final org.eclipse.aether.version.VersionScheme versionScheme -
delegate
private final org.eclipse.aether.version.VersionRange delegate
-
-
Constructor Details
-
DefaultVersionRange
DefaultVersionRange(org.eclipse.aether.version.VersionScheme versionScheme, org.eclipse.aether.version.VersionRange delegate) -
DefaultVersionRange
DefaultVersionRange(org.eclipse.aether.version.VersionScheme versionScheme, String delegateValue)
-
-
Method Details
-
contains
Description copied from interface:VersionRange
Determines whether the specified version is contained within this range.- Specified by:
contains
in interfaceVersionRange
- Parameters:
version
- the version to test, must not benull
- Returns:
true
if this range contains the specified version,false
otherwise
-
getUpperBoundary
Description copied from interface:VersionRange
Returns the upper boundary of this range, ornull
if none.- Specified by:
getUpperBoundary
in interfaceVersionRange
-
getLowerBoundary
Description copied from interface:VersionRange
Returns the lower boundary of this range, ornull
if none.- Specified by:
getLowerBoundary
in interfaceVersionRange
-
asString
Description copied from interface:VersionRange
Returns a string representation of this version range- Specified by:
asString
in interfaceVersionRange
- Returns:
- the string representation of this version range
-
toString
-
equals
-
hashCode
public int hashCode()
-