public class Peer
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Peer |
ALL
Indicate the we select all peer
|
protected java.lang.String |
name
Name of the peer
|
protected java.lang.String |
uid
Unique identifier (UID) of a peer
|
Constructor and Description |
---|
Peer() |
Peer(java.lang.String uid,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of the peer
|
java.lang.String |
getUid()
Get the UID of the peer
|
void |
setName(java.lang.String name)
Set the name of the peer
|
void |
setUid(java.lang.String uid)
Set the UID of the peer
|
java.lang.String |
toString() |
public static Peer ALL
protected java.lang.String uid
protected java.lang.String name
public java.lang.String getUid()
public void setUid(java.lang.String uid)
uid
- UID of the peerpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- name of the peerpublic java.lang.String toString()
toString
in class java.lang.Object