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.VersionRangeprivate 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 rangebooleanDetermines whether the specified version is contained within this range.booleanReturns the lower boundary of this range, ornullif none.Returns the upper boundary of this range, ornullif none.inthashCode()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:VersionRangeDetermines whether the specified version is contained within this range.- Specified by:
containsin interfaceVersionRange- Parameters:
version- the version to test, must not benull- Returns:
trueif this range contains the specified version,falseotherwise
-
getUpperBoundary
Description copied from interface:VersionRangeReturns the upper boundary of this range, ornullif none.- Specified by:
getUpperBoundaryin interfaceVersionRange
-
getLowerBoundary
Description copied from interface:VersionRangeReturns the lower boundary of this range, ornullif none.- Specified by:
getLowerBoundaryin interfaceVersionRange
-
asString
Description copied from interface:VersionRangeReturns a string representation of this version range- Specified by:
asStringin interfaceVersionRange- Returns:
- the string representation of this version range
-
toString
-
equals
-
hashCode
public int hashCode()
-