Record Class ChatContentAndTime
java.lang.Object
java.lang.Record
io.github.seenings.chat.model.ChatContentAndTime
- Record Components:
contentType- 内容类型contentId- 内容IDsendTime- 发送消息时间
public record ChatContentAndTime(ContentType contentType, Integer contentId, LocalDateTime sendTime)
extends Record
ChatContentAndTime
- Since:
- 2023-01-27
- Author:
- chixuehui
-
Constructor Summary
ConstructorsConstructorDescriptionChatContentAndTime(ContentType contentType, Integer contentId, LocalDateTime sendTime) Creates an instance of aChatContentAndTimerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentIdrecord component.Returns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sendTime()Returns the value of thesendTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatContentAndTime
Creates an instance of aChatContentAndTimerecord class.- Parameters:
contentType- the value for thecontentTyperecord componentcontentId- the value for thecontentIdrecord componentsendTime- the value for thesendTimerecord component
-
-
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). -
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
contentId
-
sendTime
-