@Immutable public abstract class AbstractHasClient extends Object implements IHasClient
| Constructor and Description |
|---|
AbstractHasClient(IClient aClient) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
IClient |
getClient() |
String |
getClientID() |
int |
hashCode() |
boolean |
hasSameClient(IClient aClient)
Check if the passed client has the same ID as this object
|
boolean |
hasSameClientID(IClientObject aClientObject)
Check if the passed object has the same client ID as this object
|
boolean |
hasSameClientID(String sClientID)
Check if the passed client ID has the same ID as this object
|
String |
toString() |
@Nonnull @Nonempty public final String getClientID()
getClientID in interface IHasClientIDnull.@Nonnull public final IClient getClient()
getClient in interface IHasClientnull.public final boolean hasSameClientID(@Nullable String sClientID)
IHasClientIDhasSameClientID in interface IHasClientIDsClientID - The client ID to check. May be null.true if this object and the passed object have the
same client IDpublic final boolean hasSameClientID(@Nullable IClientObject aClientObject)
IHasClienthasSameClientID in interface IHasClientaClientObject - The object to check. May be null.true if this object and the passed object (if not
null) have the same client IDpublic boolean hasSameClient(@Nullable IClient aClient)
IHasClienthasSameClient in interface IHasClientaClient - The client ID to check. May be null.true if this object and the passed object have the
same client IDCopyright © 2014–2015 Philip Helger. All rights reserved.