Class ArtifactReferenceImpl
java.lang.Object
io.apicurio.registry.resolver.strategy.ArtifactReferenceImpl
- All Implemented Interfaces:
ArtifactReference
- Author:
- Fabian Martinez, Jakub Senko m@jsenko.net
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanLogical equality.inthashCode()booleanhasValue()protected voidsetArtifactId(String artifactId) protected voidsetContentHash(String contentHash) protected voidsetContentId(Long contentId) protected voidsetGlobalId(Long globalId) protected voidsetGroupId(String groupId) protected voidsetVersion(String version) toString()
-
Constructor Details
-
ArtifactReferenceImpl
protected ArtifactReferenceImpl()
-
-
Method Details
-
hasValue
public boolean hasValue()- Specified by:
hasValuein interfaceArtifactReference- See Also:
-
getGroupId
- Specified by:
getGroupIdin interfaceArtifactReference- Returns:
- the groupId
- See Also:
-
getArtifactId
- Specified by:
getArtifactIdin interfaceArtifactReference- Returns:
- the artifactId
- See Also:
-
getVersion
- Specified by:
getVersionin interfaceArtifactReference- Returns:
- the version
- See Also:
-
getGlobalId
- Specified by:
getGlobalIdin interfaceArtifactReference- Returns:
- the globalId
- See Also:
-
getContentId
- Specified by:
getContentIdin interfaceArtifactReference- Returns:
- the contentId
- See Also:
-
getContentHash
- Specified by:
getContentHashin interfaceArtifactReference- Returns:
- the contentHash
- See Also:
-
setGroupId
- Parameters:
groupId- the groupId to set
-
setArtifactId
- Parameters:
artifactId- the artifactId to set
-
setVersion
- Parameters:
version- the version to set
-
setGlobalId
- Parameters:
globalId- the globalId to set
-
setContentId
- Parameters:
contentId- the contentId to set
-
setContentHash
- Parameters:
contentHash- the contentHash to set
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceArtifactReference- Overrides:
hashCodein classObject- See Also:
-
equals
Description copied from interface:ArtifactReferenceLogical equality. Two artifact references are equal, if they MUST refer to the same artifact.- Specified by:
equalsin interfaceArtifactReference- Overrides:
equalsin classObject- See Also:
-
toString
- Specified by:
toStringin interfaceArtifactReference- Overrides:
toStringin classObject- See Also:
-