Class 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 of VersionFilter.VersionFilterContext. Internal helper class for collector implementations.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultVersionFilterContext​(org.eclipse.aether.RepositorySystemSession session)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.eclipse.aether.version.Version> get()  
      int getCount()  
      org.eclipse.aether.graph.Dependency getDependency()  
      java.util.List<org.eclipse.aether.repository.RemoteRepository> getRepositories()  
      org.eclipse.aether.repository.ArtifactRepository getRepository​(org.eclipse.aether.version.Version version)  
      org.eclipse.aether.RepositorySystemSession getSession()  
      org.eclipse.aether.version.VersionConstraint getVersionConstraint()  
      java.util.Iterator<org.eclipse.aether.version.Version> iterator()  
      void set​(org.eclipse.aether.graph.Dependency dependency, org.eclipse.aether.resolution.VersionRangeResult result)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • set

        public void set​(org.eclipse.aether.graph.Dependency dependency,
                        org.eclipse.aether.resolution.VersionRangeResult result)
      • get

        public java.util.List<org.eclipse.aether.version.Version> get()
      • getSession

        public org.eclipse.aether.RepositorySystemSession getSession()
        Specified by:
        getSession in interface org.eclipse.aether.collection.VersionFilter.VersionFilterContext
      • getDependency

        public org.eclipse.aether.graph.Dependency getDependency()
        Specified by:
        getDependency in interface org.eclipse.aether.collection.VersionFilter.VersionFilterContext
      • getVersionConstraint

        public org.eclipse.aether.version.VersionConstraint getVersionConstraint()
        Specified by:
        getVersionConstraint in interface org.eclipse.aether.collection.VersionFilter.VersionFilterContext
      • getCount

        public int getCount()
        Specified by:
        getCount in interface org.eclipse.aether.collection.VersionFilter.VersionFilterContext
      • getRepository

        public org.eclipse.aether.repository.ArtifactRepository getRepository​(org.eclipse.aether.version.Version version)
        Specified by:
        getRepository in interface org.eclipse.aether.collection.VersionFilter.VersionFilterContext
      • getRepositories

        public java.util.List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
        Specified by:
        getRepositories in interface org.eclipse.aether.collection.VersionFilter.VersionFilterContext
      • iterator

        public java.util.Iterator<org.eclipse.aether.version.Version> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<org.eclipse.aether.version.Version>
        Specified by:
        iterator in interface org.eclipse.aether.collection.VersionFilter.VersionFilterContext
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object