Class DefaultVersionFilterContext
java.lang.Object
org.eclipse.aether.internal.impl.collect.DefaultVersionFilterContext
- All Implemented Interfaces:
Iterable<org.eclipse.aether.version.Version>, org.eclipse.aether.collection.VersionFilter.VersionFilterContext
public final class DefaultVersionFilterContext
extends Object
implements org.eclipse.aether.collection.VersionFilter.VersionFilterContext
Default implementation of
VersionFilter.VersionFilterContext.
Internal helper class for collector implementations.
This instance is not thread safe, and same context instance must not be shared across threads.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultVersionFilterContext(org.eclipse.aether.RepositorySystemSession session) -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.aether.version.Version> get()intgetCount()org.eclipse.aether.graph.DependencyList<org.eclipse.aether.repository.RemoteRepository> org.eclipse.aether.repository.ArtifactRepositorygetRepository(org.eclipse.aether.version.Version version) org.eclipse.aether.RepositorySystemSessionorg.eclipse.aether.version.VersionConstraintinitialize(org.eclipse.aether.graph.Dependency dependency, org.eclipse.aether.resolution.VersionRangeResult result) Creates an initialized, new context instance out of this context session and provided dependency and result.Iterator<org.eclipse.aether.version.Version> iterator()voidset(org.eclipse.aether.graph.Dependency dependency, org.eclipse.aether.resolution.VersionRangeResult result) Deprecated.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
DefaultVersionFilterContext
-
-
Method Details
-
set
@Deprecated public void set(org.eclipse.aether.graph.Dependency dependency, org.eclipse.aether.resolution.VersionRangeResult result) Deprecated.The use of this method allows strictly single-threaded use of context. Is unused in production, only in tests. -
initialize
public DefaultVersionFilterContext initialize(org.eclipse.aether.graph.Dependency dependency, org.eclipse.aether.resolution.VersionRangeResult result) Creates an initialized, new context instance out of this context session and provided dependency and result. The newly created context is still not thread safe, but allows to have multiple contexts with different dependencies and results in the same time (processed in multiple threads in parallel like BF collector does). -
get
-
getSession
- Specified by:
getSessionin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
getDependency
- Specified by:
getDependencyin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
getVersionConstraint
- Specified by:
getVersionConstraintin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
getCount
- Specified by:
getCountin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
getRepository
public org.eclipse.aether.repository.ArtifactRepository getRepository(org.eclipse.aether.version.Version version) - Specified by:
getRepositoryin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
getRepositories
- Specified by:
getRepositoriesin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
iterator
-
toString
-