Record Class Artifact_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.Artifact_v0_3
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionsrecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.parts()Returns the value of thepartsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Artifact_v0_3
public Artifact_v0_3(String artifactId, String name, String description, List<Part_v0_3<?>> parts, Map<String, Object> metadata, List<String> extensions) Creates an instance of aArtifact_v0_3record class.- Parameters:
artifactId- the value for theartifactIdrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentparts- the value for thepartsrecord componentmetadata- the value for themetadatarecord componentextensions- the value for theextensionsrecord 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). -
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
parts
-
metadata
-
extensions
-