Class ArtifactReferenceImpl
- java.lang.Object
-
- io.apicurio.registry.resolver.strategy.ArtifactReferenceImpl
-
- All Implemented Interfaces:
ArtifactReference
public class ArtifactReferenceImpl extends Object implements ArtifactReference
- Author:
- Fabian Martinez, Jakub Senko
- See Also:
ArtifactReference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArtifactReferenceImpl.ArtifactReferenceBuilder
-
Constructor Summary
Constructors Modifier Constructor Description protectedArtifactReferenceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Logical equality.StringgetArtifactId()LonggetContentId()LonggetGlobalId()StringgetGroupId()StringgetVersion()inthashCode()booleanhasValue()protected voidsetArtifactId(String artifactId)protected voidsetContentId(Long contentId)protected voidsetGlobalId(Long globalId)protected voidsetGroupId(String groupId)protected voidsetVersion(String version)StringtoString()
-
-
-
Method Detail
-
hasValue
public boolean hasValue()
- Specified by:
hasValuein interfaceArtifactReference- See Also:
ArtifactReference.hasValue()
-
getGroupId
public String getGroupId()
- Specified by:
getGroupIdin interfaceArtifactReference- Returns:
- the groupId
- See Also:
ArtifactReference.getGroupId()
-
getArtifactId
public String getArtifactId()
- Specified by:
getArtifactIdin interfaceArtifactReference- Returns:
- the artifactId
- See Also:
ArtifactReference.getArtifactId()
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceArtifactReference- Returns:
- the version
- See Also:
ArtifactReference.getVersion()
-
getGlobalId
public Long getGlobalId()
- Specified by:
getGlobalIdin interfaceArtifactReference- Returns:
- the globalId
- See Also:
ArtifactReference.getGlobalId()
-
getContentId
public Long getContentId()
- Specified by:
getContentIdin interfaceArtifactReference- Returns:
- the contentId
- See Also:
ArtifactReference.getContentId()
-
setGroupId
protected void setGroupId(String groupId)
- Parameters:
groupId- the groupId to set
-
setArtifactId
protected void setArtifactId(String artifactId)
- Parameters:
artifactId- the artifactId to set
-
setVersion
protected void setVersion(String version)
- Parameters:
version- the version to set
-
setGlobalId
protected void setGlobalId(Long globalId)
- Parameters:
globalId- the globalId to set
-
setContentId
protected void setContentId(Long contentId)
- Parameters:
contentId- the contentId to set
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceArtifactReference- Overrides:
hashCodein classObject- See Also:
ArtifactReference.hashCode()
-
equals
public boolean equals(Object obj)
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:
ArtifactReference.equals(java.lang.Object)
-
toString
public String toString()
- Specified by:
toStringin interfaceArtifactReference- Overrides:
toStringin classObject- See Also:
ArtifactReference.toString()
-
-