Record Class TaskStatus_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.TaskStatus_v0_3
public record TaskStatus_v0_3(TaskState_v0_3 state, Message_v0_3 message, OffsetDateTime timestamp)
extends Record
Represents the status of a task at a specific point in time.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskStatus_v0_3(TaskState_v0_3 state) TaskStatus_v0_3(TaskState_v0_3 state, Message_v0_3 message, OffsetDateTime timestamp) Creates an instance of aTaskStatus_v0_3record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.state()Returns the value of thestaterecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskStatus_v0_3
Creates an instance of aTaskStatus_v0_3record class.- Parameters:
state- the value for thestaterecord componentmessage- the value for themessagerecord componenttimestamp- the value for thetimestamprecord component
-
TaskStatus_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). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-