Record Class FPlayerDAO.PlayerInfo
java.lang.Object
java.lang.Record
net.flectone.pulse.data.database.dao.FPlayerDAO.PlayerInfo
- Record Components:
id- the player's database IDonline- whether the player is onlineuuid- the player's UUIDname- the player's nameip- the player's IP address, may be null
- Enclosing class:
FPlayerDAO
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerInfo(int id, boolean online, @NonNull String uuid, @NonNull String name, @Nullable String ip) Creates an instance of aPlayerInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.@Nullable Stringip()Returns the value of theiprecord component.@NonNull Stringname()Returns the value of thenamerecord component.booleanonline()Returns the value of theonlinerecord component.final StringtoString()Returns a string representation of this record class.@NonNull Stringuuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
PlayerInfo
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
online
-
uuid
-
name
-
ip
-