|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.p2p.scribe.Topic
Field Summary | |
protected rice.p2p.commonapi.Id |
id
The Id to which this topic is mapped |
Constructor Summary | |
Topic(rice.p2p.commonapi.Id id)
Constructor which takes an Id for this topic |
|
Topic(rice.p2p.commonapi.IdFactory factory,
java.lang.String name)
Constructor which takes a name for this topic |
Method Summary | |
boolean |
equals(java.lang.Object o)
Returns whether this is equal to o or not |
rice.p2p.commonapi.Id |
getId()
Returns the Id to which this topic is mapped |
static rice.p2p.commonapi.Id |
getId(rice.p2p.commonapi.IdFactory factory,
java.lang.String name)
Returns the Id to which the string is mapped |
int |
hashCode()
Returns the hashCode for this topic |
java.lang.String |
toString()
Returns a String representation of this topic |
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 Topic(rice.p2p.commonapi.Id id)
id
- The Id for this topicpublic Topic(rice.p2p.commonapi.IdFactory factory, java.lang.String name)
factory
- The factory to use when creating the idname
- The name for this topicMethod Detail |
public rice.p2p.commonapi.Id getId()
public static rice.p2p.commonapi.Id getId(rice.p2p.commonapi.IdFactory factory, java.lang.String name)
factory
- The factory to use when creating the idname
- The string to map
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare to
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |