Package com.tnsai.coordination.resources
Record Class ArtifactStore.Artifact
java.lang.Object
java.lang.Record
com.tnsai.coordination.resources.ArtifactStore.Artifact
- Record Components:
name- the artifact name (unique key)producedBy- the agent ID that produced this artifactdata- the binary contentcontentType- the MIME content typecreatedAt- when the artifact was createdmetadata- additional metadata
- Enclosing class:
ArtifactStore
public static record ArtifactStore.Artifact(String name, String producedBy, byte[] data, String contentType, Instant createdAt, Map<String,String> metadata)
extends Record
An artifact stored by a group member.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.Returns the value of thecreatedAtrecord component.byte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.Returns the value of theproducedByrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
producedBy
Returns the value of theproducedByrecord component.- Returns:
- the value of the
producedByrecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-