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.VersionConstraintprivate 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 constraintbooleanDetermines whether the specified version is contained within this constraint.booleanReturns the recommended version of this constraint, ornullif none.Returns the range of this constraint, ornullif none.inthashCode()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:VersionConstraintDetermines whether the specified version is contained within this constraint.- Specified by:
containsin interfaceVersionConstraint- Parameters:
version- the version to test, must not benull- Returns:
trueif this range contains the specified version,falseotherwise
-
asString
Description copied from interface:VersionConstraintReturns a string representation of this version constraint- Specified by:
asStringin interfaceVersionConstraint- Returns:
- the string representation of this version constraint
-
getVersionRange
Description copied from interface:VersionConstraintReturns the range of this constraint, ornullif none.Note: only one, this method or
VersionConstraint.getRecommendedVersion()method must return non-nullvalue.- Specified by:
getVersionRangein interfaceVersionConstraint
-
getRecommendedVersion
Description copied from interface:VersionConstraintReturns the recommended version of this constraint, ornullif none.Note: only one, this method or
VersionConstraint.getVersionRange()method must return non-nullvalue.- Specified by:
getRecommendedVersionin interfaceVersionConstraint
-
toString
-
equals
-
hashCode
public int hashCode()
-