Record Class DeveloperMessage
java.lang.Object
java.lang.Record
ai.agentscentral.core.session.message.DeveloperMessage
- Record Components:
contextId-messageId-parts-timestamp-
- All Implemented Interfaces:
Message
public record DeveloperMessage(String contextId, String messageId, MessagePart[] parts, long timestamp)
extends Record
implements Message
DeveloperMessage
- Author:
- Rizwan Idrees
-
Constructor Summary
ConstructorsConstructorDescriptionDeveloperMessage(String contextId, String messageId, MessagePart[] parts, long timestamp) Creates an instance of aDeveloperMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.parts()Returns the value of thepartsrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeveloperMessage
Creates an instance of aDeveloperMessagerecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
contextId
Returns the value of thecontextIdrecord component. -
messageId
Returns the value of themessageIdrecord component. -
parts
Returns the value of thepartsrecord component. -
timestamp
public long timestamp()Returns the value of thetimestamprecord component.
-