Package io.quarkus.domino
Class ArtifactSet
- java.lang.Object
-
- io.quarkus.domino.ArtifactSet
-
public class ArtifactSet extends Object
A set of GAVs defined by includes and excludesArtifactCoordsPatterns.- Author:
- Peter Palaga
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArtifactSet.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendExcludes(Appendable out)Appendsexcludesto the givenoutseparating them by comma.voidappendIncludes(Appendable out)Appendsincludesto the givenoutseparating them by comma.static ArtifactSet.Builderbuilder()booleancontains(io.quarkus.maven.dependency.ArtifactCoords coords)Whether this artifact set includes an artifact with the given coordinatesbooleancontains(String groupId, String artifactId, String type, String classifier, String version)Whether this artifact set includes an artifact with the given coordinatesbooleanequals(Object obj)List<ArtifactCoordsPattern>getExcludes()List<ArtifactCoordsPattern>getIncludes()inthashCode()static ArtifactSetincludeAll()StringtoString()
-
-
-
Method Detail
-
builder
public static ArtifactSet.Builder builder()
-
includeAll
public static ArtifactSet includeAll()
-
appendExcludes
public void appendExcludes(Appendable out) throws IOException
Appendsexcludesto the givenoutseparating them by comma.- Parameters:
out- anAppendableto append to- Throws:
IOException- in case of a failure
-
appendIncludes
public void appendIncludes(Appendable out) throws IOException
Appendsincludesto the givenoutseparating them by comma.- Parameters:
out- anAppendableto 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- groupIdartifactId- artifactIdtype- cannot benullclassifier- can benullversion- version- Returns:
trueif the given GAV triple is a member of thisArtifactSetandfalseotherwise
-
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:
trueif the given GAV triple is a member of thisArtifactSetandfalseotherwise
-
getExcludes
public List<ArtifactCoordsPattern> getExcludes()
- Returns:
- the list of excludes
-
getIncludes
public List<ArtifactCoordsPattern> getIncludes()
- Returns:
- the list of includes
-
-