Record Class ConnectionsRecord
java.lang.Object
java.lang.Record
com.zenith.database.dto.records.ConnectionsRecord
public record ConnectionsRecord(OffsetDateTime time, Connectiontype connection, String playerName, UUID playerUuid)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionsRecord(OffsetDateTime time, Connectiontype connection, String playerName, UUID playerUuid) Creates an instance of aConnectionsRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionrecord 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
-
ConnectionsRecord
public ConnectionsRecord(OffsetDateTime time, Connectiontype connection, String playerName, UUID playerUuid) Creates an instance of aConnectionsRecordrecord class.- Parameters:
time- the value for thetimerecord componentconnection- the value for theconnectionrecord 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
-
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord 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
-