@Beta public class ArtifactSummary extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected ArtifactScope |
scope |
protected String |
version |
Constructor and Description |
---|
ArtifactSummary(String name,
String version) |
ArtifactSummary(String name,
String version,
ArtifactScope scope) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ArtifactSummary |
from(ArtifactId artifactId) |
String |
getName()
get the name of the artifact
|
ArtifactScope |
getScope()
get the scope of the artifact
|
String |
getVersion()
get the version of artifact
|
int |
hashCode() |
String |
toString() |
void |
validate()
Validate that the artifact fields are valid.
|
protected final String name
protected final String version
protected final ArtifactScope scope
public ArtifactSummary(String name, String version, ArtifactScope scope)
public static ArtifactSummary from(ArtifactId artifactId)
public String getName()
public String getVersion()
public ArtifactScope getScope()
public void validate()
IllegalArgumentException
- if the artifact summary is invalidCopyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.