Record Class DataPart_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.DataPart_v0_3
-
Nested Class Summary
Nested classes/interfaces inherited from interface Part_v0_3
Part_v0_3.Kind -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataPart_v0_3(Map<String, Object> data) DataPart_v0_3(Map<String, Object> data, @Nullable Map<String, Object> metadata, Part_v0_3.Kind kind) Creates an instance of aDataPart_v0_3record class. -
Method Summary
Modifier and TypeMethodDescriptiondata()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.kind()Returns the value of thekindrecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DATA
- See Also:
-
-
Constructor Details
-
DataPart_v0_3
public DataPart_v0_3(Map<String, Object> data, @Nullable Map<String, Object> metadata, Part_v0_3.Kind kind) Creates an instance of aDataPart_v0_3record class.- Parameters:
data- the value for thedatarecord componentmetadata- the value for themetadatarecord componentkind- the value for thekindrecord component
-
DataPart_v0_3
-
DataPart_v0_3
-
-
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). -
data
-
metadata
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-