public static interface VersionFilter.VersionFilterContext extends Iterable<Version>
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the total number of available versions.
|
Dependency |
getDependency()
Gets the dependency whose version range is being filtered.
|
List<RemoteRepository> |
getRepositories()
Gets the remote repositories from which the versions were resolved.
|
ArtifactRepository |
getRepository(Version version)
Gets the repository from which the specified version was resolved.
|
RepositorySystemSession |
getSession()
Gets the repository system session during which the version filtering happens.
|
VersionConstraint |
getVersionConstraint()
Gets the version constraint that was parsed from the dependency's version string.
|
Iterator<Version> |
iterator()
Gets an iterator over the available versions of the dependency.
|
forEach, spliterator
RepositorySystemSession getSession()
null
.Dependency getDependency()
null
.int getCount()
Iterator<Version> iterator()
Iterator.remove()
to exclude a version from further consideration in the dependency graph.VersionConstraint getVersionConstraint()
null
.ArtifactRepository getRepository(Version version)
version
- The version whose source repository should be retrieved, must not be null
.null
if unknown.List<RemoteRepository> getRepositories()
null
.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.