Record Class UserInfo
java.lang.Object
java.lang.Record
com.djrapitops.plan.gathering.domain.UserInfo
public record UserInfo(UUID playerUUID, ServerUUID serverUUID, long registered, boolean banned, boolean isOperator, String joinAddress)
extends Record
Represents user information stored in plan_user_info.
Unlike BaseUser one instance is stored per server for a single player.
Proxy servers are an exception, and UserInfo is not stored for them.
-
Constructor Summary
ConstructorsConstructorDescriptionUserInfo(UUID playerUUID, ServerUUID serverUUID, long registered, boolean banned, boolean isOperator, String joinAddress) Creates an instance of aUserInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbanned()Returns the value of thebannedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisOperatorrecord component.Deprecated.Returns the value of theplayerUUIDrecord component.longReturns the value of theregisteredrecord component.Returns the value of theserverUUIDrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserInfo
public UserInfo(UUID playerUUID, ServerUUID serverUUID, long registered, boolean banned, boolean isOperator, @Deprecated(since="5.4 build 1722") String joinAddress) Creates an instance of aUserInforecord class.- Parameters:
playerUUID- the value for theplayerUUIDrecord componentserverUUID- the value for theserverUUIDrecord componentregistered- the value for theregisteredrecord componentbanned- the value for thebannedrecord componentisOperator- the value for theisOperatorrecord componentjoinAddress- the value for thejoinAddressrecord component
-
-
Method Details
-
getPlayerUuid
-
joinAddress
Deprecated.Returns the value of thejoinAddressrecord component.- Returns:
- the value of the
joinAddressrecord component
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
playerUUID
Returns the value of theplayerUUIDrecord component.- Returns:
- the value of the
playerUUIDrecord component
-
serverUUID
Returns the value of theserverUUIDrecord component.- Returns:
- the value of the
serverUUIDrecord component
-
registered
public long registered()Returns the value of theregisteredrecord component.- Returns:
- the value of the
registeredrecord component
-
banned
public boolean banned()Returns the value of thebannedrecord component.- Returns:
- the value of the
bannedrecord component
-
isOperator
public boolean isOperator()Returns the value of theisOperatorrecord component.- Returns:
- the value of the
isOperatorrecord component
-