Java org.apache.maven.artifact.versioning VersionRange fields, constructors, methods, implement or subclass

Example usage for Java org.apache.maven.artifact.versioning VersionRange fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.maven.artifact.versioning VersionRange.

The text is from its open source code.

Method

booleancontainsVersion(ArtifactVersion version)
VersionRangecreateFromVersion(String version)
VersionRangecreateFromVersionSpec(String spec)

Create a version range from a string representation

Some spec examples are:
  • 1.0 Version 1.0
  • [1.0,2.0) Versions 1.0 (included) to 2.0 (not included)
  • [1.0,2.0] Versions 1.0 to 2.0 (both included)
  • [1.5,) Versions 1.5 and higher
  • (,1.0],[1.2,) Versions up to 1.0 (included) and 1.2 or higher
ArtifactVersiongetRecommendedVersion()
ListgetRestrictions()
ArtifactVersiongetSelectedVersion(Artifact artifact)
booleanhasRestrictions()
booleanisSelectedVersionKnown(Artifact artifact)
ArtifactVersionmatchVersion(List versions)
VersionRangerestrict(VersionRange restriction)
Creates and returns a new VersionRange that is a restriction of this version range and the specified version range.
StringtoString()