Record Class NetworkPlayerServerInfo

java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.bridge.player.NetworkPlayerServerInfo
Record Components:
uniqueId - the unique id of the player.
name - the name of the player.
xBoxId - the xbox id of the player, null if the player does not have a xbox id.
address - the host address of the player.
networkService - the service info of the downstream service the player is connected to.

public record NetworkPlayerServerInfo(@NonNull UUID uniqueId, @NonNull String name, @Nullable String xBoxId, @NonNull eu.cloudnetservice.driver.network.HostAndPort address, @NonNull NetworkServiceInfo networkService) extends Record
A network player server info represents the downstream service a cloud player is connected to.
Since:
4.0
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • uniqueId

      @NonNull public @NonNull UUID uniqueId()
      Returns the value of the uniqueId record component.
      Returns:
      the value of the uniqueId record component
    • name

      @NonNull public @NonNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • xBoxId

      @Nullable public @Nullable String xBoxId()
      Returns the value of the xBoxId record component.
      Returns:
      the value of the xBoxId record component
    • address

      @NonNull public @NonNull eu.cloudnetservice.driver.network.HostAndPort address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • networkService

      @NonNull public @NonNull NetworkServiceInfo networkService()
      Returns the value of the networkService record component.
      Returns:
      the value of the networkService record component