Class TestVersionConstraint
java.lang.Object
org.eclipse.aether.internal.test.util.TestVersionConstraint
- All Implemented Interfaces:
org.eclipse.aether.version.VersionConstraint
public final class TestVersionConstraint
extends Object
implements org.eclipse.aether.version.VersionConstraint
A constraint on versions for a dependency.
-
Constructor Summary
ConstructorDescriptionTestVersionConstraint
(org.eclipse.aether.version.Version version) Creates a version constraint from the specified version.TestVersionConstraint
(org.eclipse.aether.version.VersionRange range) Creates a version constraint from the specified version range. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVersion
(org.eclipse.aether.version.Version version) boolean
org.eclipse.aether.version.VersionRange
getRange()
org.eclipse.aether.version.Version
int
hashCode()
toString()
-
Constructor Details
-
TestVersionConstraint
Creates a version constraint from the specified version range.- Parameters:
range
- The version range, must not benull
.
-
TestVersionConstraint
Creates a version constraint from the specified version.- Parameters:
version
- The version, must not benull
.
-
-
Method Details
-
getRange
- Specified by:
getRange
in interfaceorg.eclipse.aether.version.VersionConstraint
-
getVersion
- Specified by:
getVersion
in interfaceorg.eclipse.aether.version.VersionConstraint
-
containsVersion
- Specified by:
containsVersion
in interfaceorg.eclipse.aether.version.VersionConstraint
-
toString
-
equals
-
hashCode
-