Class Exclusion


  • public final class Exclusion
    extends java.lang.Object
    An exclusion of one or more transitive dependencies.
    See Also:
    Dependency.getExclusions()
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String artifactId  
      private java.lang.String classifier  
      private java.lang.String extension  
      private java.lang.String groupId  
    • Constructor Summary

      Constructors 
      Constructor Description
      Exclusion​(java.lang.String groupId, java.lang.String artifactId, java.lang.String classifier, java.lang.String extension)
      Creates an exclusion for artifacts with the specified coordinates.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getArtifactId()
      Gets the artifact identifier for artifacts to exclude.
      java.lang.String getClassifier()
      Gets the classifier for artifacts to exclude.
      java.lang.String getExtension()
      Gets the file extension for artifacts to exclude.
      java.lang.String getGroupId()
      Gets the group identifier for artifacts to exclude.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • groupId

        private final java.lang.String groupId
      • artifactId

        private final java.lang.String artifactId
      • classifier

        private final java.lang.String classifier
      • extension

        private final java.lang.String extension
    • Constructor Detail

      • Exclusion

        public Exclusion​(java.lang.String groupId,
                         java.lang.String artifactId,
                         java.lang.String classifier,
                         java.lang.String extension)
        Creates an exclusion for artifacts with the specified coordinates.
        Parameters:
        groupId - The group identifier, may be null.
        artifactId - The artifact identifier, may be null.
        classifier - The classifier, may be null.
        extension - The file extension, may be null.
    • Method Detail

      • getGroupId

        public java.lang.String getGroupId()
        Gets the group identifier for artifacts to exclude.
        Returns:
        The group identifier, never null.
      • getArtifactId

        public java.lang.String getArtifactId()
        Gets the artifact identifier for artifacts to exclude.
        Returns:
        The artifact identifier, never null.
      • getClassifier

        public java.lang.String getClassifier()
        Gets the classifier for artifacts to exclude.
        Returns:
        The classifier, never null.
      • getExtension

        public java.lang.String getExtension()
        Gets the file extension for artifacts to exclude.
        Returns:
        The file extension of artifacts to exclude, never null.
      • toString

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

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

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