Record Class LinkRequest
java.lang.Object
java.lang.Record
org.geysermc.floodgate.core.database.entity.LinkRequest
-
Constructor Summary
ConstructorsConstructorDescriptionLinkRequest(UUID javaUniqueId, String javaUsername, UUID bedrockUniqueId, String bedrockUsername, String linkCode) LinkRequest(UUID javaUniqueId, String javaUsername, UUID bedrockUniqueId, String bedrockUsername, String linkCode, long requestTime) Creates an instance of aLinkRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebedrockUniqueIdrecord component.Returns the value of thebedrockUsernamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisExpired(long linkTimeout) Returns the value of thejavaUniqueIdrecord component.Returns the value of thejavaUsernamerecord component.linkCode()Returns the value of thelinkCoderecord component.longReturns the value of therequestTimerecord component.final StringtoString()Returns a string representation of this record class.withBedrockUniqueId(UUID bedrockUniqueId)
-
Constructor Details
-
LinkRequest
-
LinkRequest
public LinkRequest(UUID javaUniqueId, String javaUsername, UUID bedrockUniqueId, String bedrockUsername, String linkCode, long requestTime) Creates an instance of aLinkRequestrecord class.- Parameters:
javaUniqueId- the value for thejavaUniqueIdrecord componentjavaUsername- the value for thejavaUsernamerecord componentbedrockUniqueId- the value for thebedrockUniqueIdrecord componentbedrockUsername- the value for thebedrockUsernamerecord componentlinkCode- the value for thelinkCoderecord componentrequestTime- the value for therequestTimerecord component
-
-
Method Details
-
isExpired
public boolean isExpired(long linkTimeout) -
withJava
-
withBedrockUniqueId
-
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 '=='. -
javaUniqueId
Returns the value of thejavaUniqueIdrecord component.- Returns:
- the value of the
javaUniqueIdrecord component
-
javaUsername
Returns the value of thejavaUsernamerecord component.- Returns:
- the value of the
javaUsernamerecord component
-
bedrockUniqueId
Returns the value of thebedrockUniqueIdrecord component.- Returns:
- the value of the
bedrockUniqueIdrecord component
-
bedrockUsername
Returns the value of thebedrockUsernamerecord component.- Returns:
- the value of the
bedrockUsernamerecord component
-
linkCode
Returns the value of thelinkCoderecord component.- Returns:
- the value of the
linkCoderecord component
-
requestTime
public long requestTime()Returns the value of therequestTimerecord component.- Returns:
- the value of the
requestTimerecord component
-