public class TreeClientInfo extends java.lang.Object implements TreeContentInfo
| Constructor and Description |
|---|
TreeClientInfo(ClientInfo cli) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareHandle(int handle)
Check if the encapsulated ClientInfo's handle is equal
to the passed one
|
boolean |
compareName(java.lang.String name)
Check if the encapsulated ClientInfo's name is equal
to the passed one
|
ClientInfo |
getClientInfo()
Getter
|
int |
getHandle()
Return the handle of the encsapsulated object
|
java.lang.String |
getName()
Return the name of the encsapsulated object
|
java.lang.String |
toString()
Override toString to show the name on the tree
|
public java.lang.String toString()
toString in class java.lang.Objectpublic ClientInfo getClientInfo()
public boolean compareHandle(int handle)
compareHandle in interface TreeContentInfohandle - The handle to compare with the handle of the
clientpublic boolean compareName(java.lang.String name)
compareName in interface TreeContentInfohandle - The name to compare with the name of the
clientpublic int getHandle()
getHandle in interface TreeContentInfopublic java.lang.String getName()
getName in interface TreeContentInfo