Class DefaultVersionFilterContext
- java.lang.Object
-
- org.eclipse.aether.internal.impl.collect.DefaultVersionFilterContext
-
- All Implemented Interfaces:
java.lang.Iterable<org.eclipse.aether.version.Version>,org.eclipse.aether.collection.VersionFilter.VersionFilterContext
public final class DefaultVersionFilterContext extends java.lang.Object implements org.eclipse.aether.collection.VersionFilter.VersionFilterContext
Default implementation ofVersionFilter.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
Constructors Constructor Description DefaultVersionFilterContext(org.eclipse.aether.RepositorySystemSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<org.eclipse.aether.version.Version>get()intgetCount()org.eclipse.aether.graph.DependencygetDependency()java.util.List<org.eclipse.aether.repository.RemoteRepository>getRepositories()org.eclipse.aether.repository.ArtifactRepositorygetRepository(org.eclipse.aether.version.Version version)org.eclipse.aether.RepositorySystemSessiongetSession()org.eclipse.aether.version.VersionConstraintgetVersionConstraint()DefaultVersionFilterContextinitialize(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.java.util.Iterator<org.eclipse.aether.version.Version>iterator()voidset(org.eclipse.aether.graph.Dependency dependency, org.eclipse.aether.resolution.VersionRangeResult result)Deprecated.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultVersionFilterContext
public DefaultVersionFilterContext(org.eclipse.aether.RepositorySystemSession session)
-
-
Method Detail
-
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
public java.util.List<org.eclipse.aether.version.Version> get()
-
getSession
public org.eclipse.aether.RepositorySystemSession getSession()
- Specified by:
getSessionin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
getDependency
public org.eclipse.aether.graph.Dependency getDependency()
- Specified by:
getDependencyin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
getVersionConstraint
public org.eclipse.aether.version.VersionConstraint getVersionConstraint()
- Specified by:
getVersionConstraintin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
getCount
public int 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
public java.util.List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
- Specified by:
getRepositoriesin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
iterator
public java.util.Iterator<org.eclipse.aether.version.Version> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<org.eclipse.aether.version.Version>- Specified by:
iteratorin interfaceorg.eclipse.aether.collection.VersionFilter.VersionFilterContext
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-