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 booleanequals(java.lang.Object otherObject)Checks if this object equals another one.java.lang.StringgetClientName()Return the client's name.inthashCode()java.lang.StringtoString()
-
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:
equalsin classjava.lang.Object- Parameters:
otherObject- The other object to be compared with this object.- Returns:
trueif, and only if, the given object is also aClientIDand contains the same name and the same UUID as this one.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-