Package org.eclipse.aether.resolution
Class VersionRangeResult
java.lang.Object
org.eclipse.aether.resolution.VersionRangeResult
The result of a version range resolution request.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionVersionRangeResult(VersionRangeRequest request) Creates a new result for the specified request.
- 
Method SummaryModifier and TypeMethodDescriptionaddException(Exception exception) Records the specified exception while resolving the version range.addVersion(Version version) Adds the specified version to the result.Gets the exceptions that occurred while resolving the version range.Gets the highest version matching the requested range.Gets the lowest version matching the requested range.getRepository(Version version) Gets the repository from which the specified version was resolved.Gets the resolution request that was made.Gets the version constraint that was parsed from the artifact's version string.Gets the versions (in ascending order) that matched the requested range.setRepository(Version version, ArtifactRepository repository) Records the repository from which the specified version was resolvedsetVersionConstraint(VersionConstraint versionConstraint) Sets the version constraint that was parsed from the artifact's version string.setVersions(List<Version> versions) Sets the versions (in ascending order) matching the requested range.toString()
- 
Constructor Details- 
VersionRangeResultCreates a new result for the specified request.- Parameters:
- request- The resolution request, must not be- null.
 
 
- 
- 
Method Details- 
getRequestGets the resolution request that was made.- Returns:
- The resolution request, never null.
 
- 
getExceptionsGets the exceptions that occurred while resolving the version range.- Returns:
- The exceptions that occurred, never null.
 
- 
addExceptionRecords the specified exception while resolving the version range.- Parameters:
- exception- The exception to record, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getVersionsGets the versions (in ascending order) that matched the requested range.- Returns:
- The matching versions (if any), never null.
 
- 
addVersionAdds the specified version to the result. Note that versions must be added in ascending order.- Parameters:
- version- The version to add, must not be- null.
- Returns:
- This result for chaining, never null.
 
- 
setVersionsSets the versions (in ascending order) matching the requested range.- Parameters:
- versions- The matching versions, may be empty or- nullif none.
- Returns:
- This result for chaining, never null.
 
- 
getLowestVersionGets the lowest version matching the requested range.- Returns:
- The lowest matching version or nullif no versions matched the requested range.
 
- 
getHighestVersionGets the highest version matching the requested range.- Returns:
- The highest matching version or nullif no versions matched the requested range.
 
- 
getRepositoryGets the repository from which the specified version was resolved.- Parameters:
- version- The version whose source repository should be retrieved, must not be- null.
- Returns:
- The repository from which the version was resolved or nullif unknown.
 
- 
setRepositoryRecords the repository from which the specified version was resolved- Parameters:
- version- The version whose source repository is to be recorded, must not be- null.
- repository- The repository from which the version was resolved, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getVersionConstraintGets the version constraint that was parsed from the artifact's version string.- Returns:
- The parsed version constraint or null.
 
- 
setVersionConstraintSets the version constraint that was parsed from the artifact's version string.- Parameters:
- versionConstraint- The parsed version constraint, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
toString
 
-