|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.p2p.splitstream.ChannelId
This class wraps the nodeId object so we can use type checking and allow more readable and understandable code. All it does is subclass the nodeId and provide a constructor that allows the wrapping of a NodeId object to create a concrete subclass
Field Summary | |
protected rice.p2p.commonapi.Id |
id
The underlying id for this channelid |
Constructor Summary | |
ChannelId(rice.p2p.commonapi.Id id)
Constructor that takes in an Id and makes a ChannelId |
|
ChannelId(java.lang.String name)
Constructor that takes in a String and makes a ChannelId |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
rice.p2p.commonapi.Id |
getId()
Gets the Id attribute of the ChannelId object |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected rice.p2p.commonapi.Id id
Constructor Detail |
public ChannelId(rice.p2p.commonapi.Id id)
id
- The underlying id for this channelidpublic ChannelId(java.lang.String name)
name
- The name to create this channelId fromMethod Detail |
public rice.p2p.commonapi.Id getId()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |