Package org.opentcs.access.rmi
Class ClientID
java.lang.Object
org.opentcs.access.rmi.ClientID
- All Implemented Interfaces:
java.io.Serializable
public class ClientID
extends java.lang.Object
implements java.io.Serializable
Identifies a remote client unambiguously.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ClientID(java.lang.String clientName)
Creates a new ClientID. -
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object otherObject)
Checks if this object equals another one.java.lang.String
getClientName()
Return the client's name.int
hashCode()
java.lang.String
toString()
-
Constructor Details
-
ClientID
public ClientID(@Nonnull java.lang.String clientName)Creates a new ClientID.- Parameters:
clientName
- The client's name.
-
-
Method Details
-
getClientName
@Nonnull public java.lang.String getClientName()Return the client's name.- Returns:
- The client's name.
-
equals
public boolean equals(java.lang.Object otherObject)Checks if this object equals another one.- Overrides:
equals
in classjava.lang.Object
- Parameters:
otherObject
- The other object to be compared with this object.- Returns:
true
if, and only if, the given object is also aClientID
and contains the same name and the same UUID as this one.
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-