Interface ArtifactReference
-
- All Known Implementing Classes:
ArtifactReferenceImpl
public interface ArtifactReferenceThis class holds the information that reference one Artifact in Apicurio Registry. It will always make reference to an artifact in a group. Optionally it can reference to a specific version.- Author:
- Fabian Martinez, Jakub Senko m@jsenko.net
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ArtifactReferenceImpl.ArtifactReferenceBuilderbuilder()booleanequals(Object obj)Logical equality.static ArtifactReferencefromGlobalId(Long globalId)StringgetArtifactId()StringgetContentHash()LonggetContentId()LonggetGlobalId()StringgetGroupId()StringgetVersion()inthashCode()booleanhasValue()StringtoString()
-
-
-
Method Detail
-
hasValue
boolean hasValue()
-
getGroupId
String getGroupId()
- Returns:
- the groupId
-
getArtifactId
String getArtifactId()
- Returns:
- the artifactId
-
getVersion
String getVersion()
- Returns:
- the version
-
getGlobalId
Long getGlobalId()
- Returns:
- the globalId
-
getContentId
Long getContentId()
- Returns:
- the contentId
-
getContentHash
String getContentHash()
- Returns:
- the contentHash
-
hashCode
int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
boolean equals(Object obj)
Logical equality. Two artifact references are equal, if they MUST refer to the same artifact.
-
toString
String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
fromGlobalId
static ArtifactReference fromGlobalId(Long globalId)
-
builder
static ArtifactReferenceImpl.ArtifactReferenceBuilder builder()
-
-