Record Class OutputConversationStatsDto
java.lang.Object
java.lang.Record
com.finconsgroup.itserr.marketplace.usercommunication.dm.dto.OutputConversationStatsDto
public record OutputConversationStatsDto(long directConversations, long groupConversations)
extends Record
Simple statistics for conversations.
-
Constructor Summary
ConstructorsConstructorDescriptionOutputConversationStatsDto(long directConversations, long groupConversations) Creates an instance of aOutputConversationStatsDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedirectConversationsrecord component.final booleanIndicates whether some other object is "equal to" this one.longlongReturns the value of thegroupConversationsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutputConversationStatsDto
public OutputConversationStatsDto(long directConversations, long groupConversations) Creates an instance of aOutputConversationStatsDtorecord class.- Parameters:
directConversations- the value for thedirectConversationsrecord componentgroupConversations- the value for thegroupConversationsrecord component
-
-
Method Details
-
getTotalConversations
public long getTotalConversations() -
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. All components in this record class are compared with '=='. -
directConversations
public long directConversations()Returns the value of thedirectConversationsrecord component.- Returns:
- the value of the
directConversationsrecord component
-
groupConversations
public long groupConversations()Returns the value of thegroupConversationsrecord component.- Returns:
- the value of the
groupConversationsrecord component
-