Class DefaultModelVersionParser.DefaultVersionConstraint
java.lang.Object
org.apache.maven.repository.internal.DefaultModelVersionParser.DefaultVersionConstraint
- All Implemented Interfaces:
VersionConstraint
- Enclosing class:
DefaultModelVersionParser
static class DefaultModelVersionParser.DefaultVersionConstraint
extends Object
implements VersionConstraint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.aether.version.VersionConstraint
private final org.eclipse.aether.version.VersionScheme
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultVersionConstraint
(org.eclipse.aether.version.VersionScheme versionScheme, String delegateValue) -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns a string representation of this version constraintboolean
Determines whether the specified version is contained within this constraint.boolean
Returns the recommended version of this constraint, ornull
if none.Returns the range of this constraint, ornull
if none.int
hashCode()
toString()
-
Field Details
-
versionScheme
private final org.eclipse.aether.version.VersionScheme versionScheme -
delegate
private final org.eclipse.aether.version.VersionConstraint delegate
-
-
Constructor Details
-
DefaultVersionConstraint
DefaultVersionConstraint(org.eclipse.aether.version.VersionScheme versionScheme, String delegateValue)
-
-
Method Details
-
contains
Description copied from interface:VersionConstraint
Determines whether the specified version is contained within this constraint.- Specified by:
contains
in interfaceVersionConstraint
- Parameters:
version
- the version to test, must not benull
- Returns:
true
if this range contains the specified version,false
otherwise
-
asString
Description copied from interface:VersionConstraint
Returns a string representation of this version constraint- Specified by:
asString
in interfaceVersionConstraint
- Returns:
- the string representation of this version constraint
-
getVersionRange
Description copied from interface:VersionConstraint
Returns the range of this constraint, ornull
if none.Note: only one, this method or
VersionConstraint.getRecommendedVersion()
method must return non-null
value.- Specified by:
getVersionRange
in interfaceVersionConstraint
-
getRecommendedVersion
Description copied from interface:VersionConstraint
Returns the recommended version of this constraint, ornull
if none.Note: only one, this method or
VersionConstraint.getVersionRange()
method must return non-null
value.- Specified by:
getRecommendedVersion
in interfaceVersionConstraint
-
toString
-
equals
-
hashCode
public int hashCode()
-