Record Class ServicePlayer
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.bridge.player.ServicePlayer
- Record Components:
uniqueId- the unique id of the player.name- the name of the player.
- All Implemented Interfaces:
Comparable<ServicePlayer>
public record ServicePlayer(@NonNull UUID uniqueId, @NonNull String name)
extends Record
implements Comparable<ServicePlayer>
The service player represents a player that is currently connected to a cloudnet service.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServicePlayer(@NonNull UUID uniqueId, @NonNull String name) Creates an instance of aServicePlayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.uniqueId()Returns the value of theuniqueIdrecord component.
-
Field Details
-
uniqueId
-
name
-
-
Constructor Details
-
ServicePlayer
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ServicePlayer>
-
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). -
uniqueId
-
name
-