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 Details

    • TestVersionConstraint

      public TestVersionConstraint(org.eclipse.aether.version.VersionRange range)
      Creates a version constraint from the specified version range.
      Parameters:
      range - The version range, must not be null.
    • TestVersionConstraint

      public TestVersionConstraint(org.eclipse.aether.version.Version version)
      Creates a version constraint from the specified version.
      Parameters:
      version - The version, must not be null.
  • Method Details

    • getRange

      public org.eclipse.aether.version.VersionRange getRange()
      Specified by:
      getRange in interface org.eclipse.aether.version.VersionConstraint
    • getVersion

      public org.eclipse.aether.version.Version getVersion()
      Specified by:
      getVersion in interface org.eclipse.aether.version.VersionConstraint
    • containsVersion

      public boolean containsVersion(org.eclipse.aether.version.Version version)
      Specified by:
      containsVersion in interface org.eclipse.aether.version.VersionConstraint
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object