Record Class ChatsRecord
java.lang.Object
java.lang.Record
com.zenith.database.dto.records.ChatsRecord
public record ChatsRecord(OffsetDateTime time, String chat, String playerName, UUID playerUuid)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionChatsRecord(OffsetDateTime time, String chat, String playerName, UUID playerUuid) Creates an instance of aChatsRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchat()Returns the value of thechatrecord 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 theplayerNamerecord component.Returns the value of theplayerUuidrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatsRecord
Creates an instance of aChatsRecordrecord class.- Parameters:
time- the value for thetimerecord componentchat- the value for thechatrecord componentplayerName- the value for theplayerNamerecord componentplayerUuid- the value for theplayerUuidrecord 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). -
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
chat
Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
playerName
Returns the value of theplayerNamerecord component.- Returns:
- the value of the
playerNamerecord component
-
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-