Class ClientID

java.lang.Object
org.opentcs.access.rmi.ClientID
All Implemented Interfaces:
Serializable

public class ClientID extends Object implements Serializable
Identifies a remote client unambiguously.
See Also:
  • Constructor Details

    • ClientID

      public ClientID(@Nonnull String clientName)
      Creates a new ClientID.
      Parameters:
      clientName - The client's name.
  • Method Details

    • getClientName

      @Nonnull public String getClientName()
      Return the client's name.
      Returns:
      The client's name.
    • equals

      public boolean equals(Object otherObject)
      Checks if this object equals another one.
      Overrides:
      equals in class Object
      Parameters:
      otherObject - The other object to be compared with this object.
      Returns:
      true if, and only if, the given object is also a ClientID and contains the same name and the same UUID as this one.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object