Record Class ApicurioRegistryClient.ArtifactContent
java.lang.Object
java.lang.Record
ai.pipestream.registration.repository.ApicurioRegistryClient.ArtifactContent
- Enclosing class:
ApicurioRegistryClient
-
Constructor Summary
ConstructorsConstructorDescriptionArtifactContent(byte[] bytes, String contentType, String version) Creates an instance of aArtifactContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Returns the value of thebytesrecord component.Returns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ArtifactContent
Creates an instance of aArtifactContentrecord class.- Parameters:
bytes- the value for thebytesrecord componentcontentType- the value for thecontentTyperecord componentversion- the value for theversionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
bytes
public byte[] bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-