Record Class ChatMessageConversationIndex
java.lang.Object
java.lang.Record
com.finconsgroup.itserr.marketplace.usercommunication.dm.bean.ChatMessageConversationIndex
- Record Components:
id- the id of the chat messageconversationId- the id of the conversationmessageIndex- the index of the chat message sorted by created_at desc within the conversation
public record ChatMessageConversationIndex(UUID id, UUID conversationId, long messageIndex)
extends Record
The object to provide message index for chat message within a conversation.
-
Constructor Summary
ConstructorsConstructorDescriptionChatMessageConversationIndex(UUID id, UUID conversationId, long messageIndex) Creates an instance of aChatMessageConversationIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconversationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.longReturns the value of themessageIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatMessageConversationIndex
Creates an instance of aChatMessageConversationIndexrecord class.- Parameters:
id- the value for theidrecord componentconversationId- the value for theconversationIdrecord componentmessageIndex- the value for themessageIndexrecord component
-
-
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
conversationId
Returns the value of theconversationIdrecord component.- Returns:
- the value of the
conversationIdrecord component
-
messageIndex
public long messageIndex()Returns the value of themessageIndexrecord component.- Returns:
- the value of the
messageIndexrecord component
-