|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.bluebones.boggle.NamedClient
public class NamedClient
Wraps an IClient with other non-remote details about that client.
| Constructor Summary | |
|---|---|
NamedClient(String name,
IClient client)
Initializes a new NamedClient. |
|
| Method Summary | |
|---|---|
IClient |
client()
IClient that is wrapped in this NamedClient. |
boolean |
equals(Object o)
Determines if o is the same as this NamedClient
(has the same name and wraps the exact same client). |
int |
hashCode()
Returns a hash code value for the object. |
String |
name()
Name of this NamedClient. |
String |
toString()
Gets a String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NamedClient(String name,
IClient client)
NamedClient.
name - String name of the client (to use in
display).client - Underlying IClient that does the work.| Method Detail |
|---|
public String name()
NamedClient.
String name.public IClient client()
IClient that is wrapped in this NamedClient.
IClient.public String toString()
String representation of this object.
toString in class ObjectString representation of this object.public boolean equals(Object o)
o is the same as this NamedClient
(has the same name and wraps the exact same client).
equals in class Objecto - Object to compare.
boolean.public int hashCode()
java.util.Hashtable.
hashCode in class Objectint hash code value for this object.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||