Class ScopeArtifactFilter

  • All Implemented Interfaces:
    org.apache.maven.artifact.resolver.filter.ArtifactFilter

    public class ScopeArtifactFilter
    extends java.lang.Object
    Filter to only retain objects in the given artifactScope or better.
    Author:
    Brett Porter
    • Constructor Summary

      Constructors 
      Constructor Description
      ScopeArtifactFilter​(java.lang.String scope)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getScope()  
      int hashCode()  
      boolean include​(org.apache.maven.artifact.Artifact artifact)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScopeArtifactFilter

        public ScopeArtifactFilter​(java.lang.String scope)
    • Method Detail

      • getScope

        public java.lang.String getScope()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • include

        public boolean include​(org.apache.maven.artifact.Artifact artifact)
        Specified by:
        include in interface org.apache.maven.artifact.resolver.filter.ArtifactFilter