Class ArtifactSet

java.lang.Object
io.quarkus.domino.ArtifactSet

public class ArtifactSet extends Object
A set of GAVs defined by includes and excludes ArtifactCoordsPatterns.
Author:
Peter Palaga
  • Method Details

    • builder

      public static ArtifactSet.Builder builder()
    • includeAll

      public static ArtifactSet includeAll()
    • appendExcludes

      public void appendExcludes(Appendable out) throws IOException
      Appends excludes to the given out separating them by comma.
      Parameters:
      out - an Appendable to append to
      Throws:
      IOException - in case of a failure
    • appendIncludes

      public void appendIncludes(Appendable out) throws IOException
      Appends includes to the given out separating them by comma.
      Parameters:
      out - an Appendable to append to
      Throws:
      IOException - in case of a failure
    • contains

      public boolean contains(String groupId, String artifactId, String type, String classifier, String version)
      Whether this artifact set includes an artifact with the given coordinates
      Parameters:
      groupId - groupId
      artifactId - artifactId
      type - cannot be null
      classifier - can be null
      version - version
      Returns:
      true if the given GAV triple is a member of this ArtifactSet and false otherwise
    • contains

      public boolean contains(io.quarkus.maven.dependency.ArtifactCoords coords)
      Whether this artifact set includes an artifact with the given coordinates
      Parameters:
      coords - artifact coordinates
      Returns:
      true if the given GAV triple is a member of this ArtifactSet and false otherwise
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getExcludes

      public List<ArtifactCoordsPattern> getExcludes()
      Returns:
      the list of excludes
    • getIncludes

      public List<ArtifactCoordsPattern> getIncludes()
      Returns:
      the list of includes
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object