Record Class LinkedPlayer
java.lang.Object
java.lang.Record
org.geysermc.floodgate.core.database.entity.LinkedPlayer
-
Constructor Summary
ConstructorsConstructorDescriptionLinkedPlayer(UUID bedrockId, UUID javaUniqueId, String javaUsername) Creates an instance of aLinkedPlayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebedrockIdrecord 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 thejavaUniqueIdrecord component.Returns the value of thejavaUsernamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LinkedPlayer
Creates an instance of aLinkedPlayerrecord class.- Parameters:
bedrockId- the value for thebedrockIdrecord componentjavaUniqueId- the value for thejavaUniqueIdrecord componentjavaUsername- the value for thejavaUsernamerecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
bedrockId
Returns the value of thebedrockIdrecord component.- Returns:
- the value of the
bedrockIdrecord component
-
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
-